summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test/osd/RadosModel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/osd/RadosModel.h b/src/test/osd/RadosModel.h
index 7bda0fe9a56..a08772002e6 100644
--- a/src/test/osd/RadosModel.h
+++ b/src/test/osd/RadosModel.h
@@ -403,8 +403,8 @@ public:
void update_object_full(const string &oid, const ObjectDesc &contents)
{
- pool_obj_cont.rbegin()->second.erase(oid);
- pool_obj_cont.rbegin()->second.insert(pair<string,ObjectDesc>(oid, contents));
+ pool_obj_cont[current_snap].erase(oid);
+ pool_obj_cont[current_snap].insert(pair<string,ObjectDesc>(oid, contents));
}
void update_object_version(const string &oid, uint64_t version)