mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-12 10:55:46 +02:00
feat(server): Implement brpoplpush for single shard case.
A simple case where both src and dest keys are located in the same shard. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
fe2a491824
commit
9ca636e49d
9 changed files with 223 additions and 74 deletions
|
@ -38,8 +38,8 @@ class BlockingController {
|
|||
// TODO: consider moving all watched functions to
|
||||
// EngineShard with separate per db map.
|
||||
//! AddWatched adds a transaction to the blocking queue.
|
||||
void AddWatched(Transaction* me);
|
||||
void RemoveWatched(Transaction* me);
|
||||
void AddWatched(ArgSlice watch_keys, Transaction* me);
|
||||
void RemoveWatched(ArgSlice watch_keys, Transaction* me);
|
||||
|
||||
// Called from operations that create keys like lpush, rename etc.
|
||||
void AwakeWatched(DbIndex db_index, std::string_view db_key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue