Fix vitastor client passing incorrect mod_revision for snapshotted images

This was leading to reads only working for the image itself and for its latest snapshot
This commit is contained in:
Vitaliy Filippov
2024-12-28 16:01:35 +03:00
parent abdc207297
commit 5623dca02c
+1 -1
View File
@@ -1079,7 +1079,7 @@ bool cluster_client_t::try_send(cluster_op_t *op, int i)
uint64_t meta_rev = 0;
if (op->opcode != OSD_OP_READ_BITMAP && op->opcode != OSD_OP_DELETE)
{
auto ino_it = st_cli.inode_config.find(op->inode);
auto ino_it = st_cli.inode_config.find(op->cur_inode);
if (ino_it != st_cli.inode_config.end())
meta_rev = ino_it->second.mod_revision;
}