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:
Mykola Golub 2016-03-30 14:39:37 +03:00
parent dbd9bb1174
commit 3995cafae4

View File

@ -3014,6 +3014,10 @@ int read_peers(cls_method_context_t hctx,
return -EIO;
}
}
if (!vals.empty()) {
last_read = vals.rbegin()->first;
}
}
return 0;
}