mirror of
https://github.com/ceph/ceph
synced 2024-12-28 14:34:13 +00:00
cls::rbd: read_peers: update last_read on next cls_cxx_map_get_vals
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
This commit is contained in:
parent
dbd9bb1174
commit
3995cafae4
@ -3014,6 +3014,10 @@ int read_peers(cls_method_context_t hctx,
|
||||
return -EIO;
|
||||
}
|
||||
}
|
||||
|
||||
if (!vals.empty()) {
|
||||
last_read = vals.rbegin()->first;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user