diff --git a/src/cls/rbd/cls_rbd.cc b/src/cls/rbd/cls_rbd.cc index b3c7fc696b3..24b2e3acd38 100644 --- a/src/cls/rbd/cls_rbd.cc +++ b/src/cls/rbd/cls_rbd.cc @@ -3014,6 +3014,10 @@ int read_peers(cls_method_context_t hctx, return -EIO; } } + + if (!vals.empty()) { + last_read = vals.rbegin()->first; + } } return 0; }