diff --git a/src/server/list_family.cc b/src/server/list_family.cc index 56357456b..cbf91f5c9 100644 --- a/src/server/list_family.cc +++ b/src/server/list_family.cc @@ -366,10 +366,10 @@ OpResult 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 mapped(vals.size() + 1);