This commit is contained in:
Emmanuel Keller 2024-08-23 10:52:42 +01:00 committed by GitHub
parent 70584115ab
commit 04ae6e7a52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -549,7 +549,7 @@ impl Datastore {
// Convert the version to binary // Convert the version to binary
let bytes: Vec<u8> = val.into(); let bytes: Vec<u8> = val.into();
// Attempt to set the current version in storage // Attempt to set the current version in storage
catch!(txn, txn.set(key, bytes)); catch!(txn, txn.set(key, bytes, None));
// We set the version, so commit the transaction // We set the version, so commit the transaction
catch!(txn, txn.commit()); catch!(txn, txn.commit());
// Return the current version // Return the current version