]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/fusestore: del redundant and sometimes improper open_collection call 23257/head
authorIgor Fedotov <ifedotov@suse.com>
Mon, 6 Aug 2018 16:12:54 +0000 (19:12 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 6 Aug 2018 16:12:54 +0000 (19:12 +0300)
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/os/FuseStore.cc

index d993cd8df9cca94de1717da37614e5e272b93255..02ea9fdcbdfe4cceb54918ad6a514373ba1151e7 100644 (file)
@@ -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: