bug(list_family): fix BPopPusher command replication (#899)

* bug(list_family): fix BPopPusher command replication

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-03-02 15:48:08 +02:00 committed by GitHub
parent d6b588d1bf
commit 7ae316a85d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -953,8 +953,8 @@ OpResult<string> BPopPusher::RunSingle(Transaction* t, time_point tp) {
OpArgs op_args = t->GetOpArgs(shard);
op_res = OpMoveSingleShard(op_args, pop_key_, push_key_, popdir_, pushdir_);
if (op_res && op_args.shard->journal()) {
ArgSlice args{pop_key_, push_key_, DirToSv(popdir_), DirToSv(pushdir_)};
RecordJournal(op_args, "LMOVE", args, 1);
std::array<string_view, 4> arr = {pop_key_, push_key_, DirToSv(popdir_), DirToSv(pushdir_)};
RecordJournal(op_args, "LMOVE", arr, 1);
}
return OpStatus::OK;
};