1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

bug(replica): call add entry outside DCHECK (#896)

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

View file

@ -1232,7 +1232,8 @@ bool Replica::TransactionData::IsGlobalCmd() const {
Replica::TransactionData Replica::TransactionData::FromSingle(journal::ParsedEntry&& entry) {
TransactionData data;
DCHECK(data.AddEntry(std::move(entry)));
bool res = data.AddEntry(std::move(entry));
DCHECK(res);
return data;
}