]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_rados: fix update_object_full
authorSage Weil <sage@inktank.com>
Fri, 27 Sep 2013 01:14:46 +0000 (18:14 -0700)
committerSage Weil <sage@inktank.com>
Fri, 27 Sep 2013 01:14:46 +0000 (18:14 -0700)
Update at current snap, not the last snap we did an update.

Broken this this was introduced in 996af2d8fd8e60bcdce8e9408249b974521de24e

Signed-off-by: Sage Weil <sage@inktank.com>
src/test/osd/RadosModel.h

index 7bda0fe9a564e0507f1116def178ecc4357a7f0c..a08772002e6efbcdf4b65bffccc4519021a7fad2 100644 (file)
@@ -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)