fix(server): non auto journal write after callback finish (#3016)

fix server: non auto journal write after callback finish

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2024-05-06 17:18:51 +03:00 committed by GitHub
parent de0e5cb0bd
commit dd80d06be5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1375,8 +1375,10 @@ void Transaction::LogAutoJournalOnShard(EngineShard* shard, RunnableResult resul
} }
// If autojournaling was disabled and not re-enabled, skip it // If autojournaling was disabled and not re-enabled, skip it
if ((cid_->opt_mask() & CO::NO_AUTOJOURNAL) && !re_enabled_auto_journal_) if ((cid_->opt_mask() & CO::NO_AUTOJOURNAL) && !re_enabled_auto_journal_) {
TriggerJournalWriteToSink();
return; return;
}
// TODO: Handle complex commands like LMPOP correctly once they are implemented. // TODO: Handle complex commands like LMPOP correctly once they are implemented.
journal::Entry::Payload entry_payload; journal::Entry::Payload entry_payload;