mirror of
https://github.com/ceph/ceph
synced 2025-02-23 19:17:37 +00:00
os/fusestore: del redundant and sometimes improper open_collection call
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
This commit is contained in:
parent
87e8231d3f
commit
b0ec336a8c
@ -1012,12 +1012,10 @@ static int os_unlink(const char *path)
|
||||
keys.insert(key);
|
||||
t.omap_rmkeys(cid, oid, keys);
|
||||
}
|
||||
ch = fs->store->open_collection(cid);
|
||||
break;
|
||||
|
||||
case FN_OBJECT_ATTR_VAL:
|
||||
t.rmattr(cid, oid, key.c_str());
|
||||
ch = fs->store->open_collection(cid);
|
||||
break;
|
||||
|
||||
case FN_OBJECT_OMAP_HEADER:
|
||||
@ -1025,12 +1023,10 @@ static int os_unlink(const char *path)
|
||||
bufferlist empty;
|
||||
t.omap_setheader(cid, oid, empty);
|
||||
}
|
||||
ch = fs->store->open_collection(cid);
|
||||
break;
|
||||
|
||||
case FN_OBJECT:
|
||||
t.remove(cid, oid);
|
||||
ch = fs->store->open_collection(cid);
|
||||
break;
|
||||
|
||||
case FN_COLLECTION:
|
||||
@ -1043,12 +1039,10 @@ static int os_unlink(const char *path)
|
||||
return -ENOTEMPTY;
|
||||
t.remove_collection(cid);
|
||||
}
|
||||
ch = fs->store->open_collection(coll_t::meta());
|
||||
break;
|
||||
|
||||
case FN_OBJECT_DATA:
|
||||
t.truncate(cid, oid, 0);
|
||||
ch = fs->store->open_collection(cid);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user