mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
Merge pull request #1211 from ceph/wip-memstore
memstore: fix touch double-allocation Reviewed-by: Samuel Just <sam.just@inktank.com>
This commit is contained in:
commit
7709d19f65
@ -1012,8 +1012,9 @@ int MemStore::_touch(coll_t cid, const ghobject_t& oid)
|
||||
|
||||
ObjectRef o = c->get_object(oid);
|
||||
if (!o) {
|
||||
c->object_map[oid].reset(new Object);
|
||||
c->object_hash[oid].reset(new Object);
|
||||
o.reset(new Object);
|
||||
c->object_map[oid] = o;
|
||||
c->object_hash[oid] = o;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user