mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
fix(server): Call PostUpdate from LPUSH
even for new keys (#2254)
This commit is contained in:
parent
11ef6623dc
commit
3957370485
1 changed files with 2 additions and 2 deletions
|
@ -366,10 +366,10 @@ OpResult<uint32_t> OpPush(const OpArgs& op_args, std::string_view key, ListDir d
|
|||
absl::StrAppend(debugMessages.Next(), "OpPush AwakeWatched: ", key, " by ",
|
||||
op_args.tx->DebugId());
|
||||
}
|
||||
} else {
|
||||
es->db_slice().PostUpdate(op_args.db_cntx.db_index, it, key, true);
|
||||
}
|
||||
|
||||
es->db_slice().PostUpdate(op_args.db_cntx.db_index, it, key, !new_key);
|
||||
|
||||
if (journal_rewrite && op_args.shard->journal()) {
|
||||
string command = dir == ListDir::LEFT ? "LPUSH" : "RPUSH";
|
||||
vector<string_view> mapped(vals.size() + 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue