Merge pull request #29071 from nicelulu/fix_deserializeCheckVersionTxn

Fix deserializeCheckVersionTxn version.
This commit is contained in:
alesapin 2021-09-17 10:40:02 +03:00 committed by GitHub
commit d0b5485773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,6 +339,9 @@ Coordination::ZooKeeperRequestPtr deserializeCheckVersionTxn(ReadBuffer & in)
Coordination::read(result->path, in);
Coordination::read(result->version, in);
result->restored_from_zookeeper_log = true;
/// It stores version + 1 (which should be, not for request)
result->version -= 1;
return result;
}