ceph_test_rados: fix update_object_full

Update at current snap, not the last snap we did an update.

Broken this this was introduced in 996af2d8fd

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-09-26 18:14:46 -07:00
parent 97c56ef3ec
commit eec315f248

View 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)