Use revision from txn response header, not from put subresponse

This commit is contained in:
Vitaliy Filippov
2024-12-28 21:01:15 +03:00
parent 685af019f5
commit 561b36a4c1
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -226,7 +226,7 @@ resume_2:
return;
}
// Save into inode_config for library users to be able to take it from there immediately
cfg.mod_revision = parent->etcd_result["responses"][0]["response_put"]["header"]["revision"].uint64_value();
cfg.mod_revision = parent->etcd_result["header"]["revision"].uint64_value();
if (new_name != "")
{
parent->cli->st_cli.inode_by_name.erase(image_name);