]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore::_setattrs no need to grab an Index lock for the omap operations
authorSamuel Just <sam.just@inktank.com>
Thu, 21 Feb 2013 21:24:42 +0000 (13:24 -0800)
committerSamuel Just <sam.just@inktank.com>
Thu, 21 Feb 2013 21:24:42 +0000 (13:24 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/FileStore.cc

index c53bd79b2edef9624ef263a218164aa1facc9aa5..a7390361d468190b403d0b70d11cde226da74853 100644 (file)
@@ -3883,12 +3883,6 @@ int FileStore::_setattrs(coll_t cid, const hobject_t& oid, map<string,bufferptr>
   }
 
   if (g_conf->filestore_xattr_use_omap) {
-    Index index;
-    int r = get_index(cid, &index);
-    if (r < 0) {
-      dout(10) << __func__ << " could not get index r = " << r << dendl;
-      goto out_close;
-    }
     r = object_map->remove_xattrs(oid, omap_remove, &spos);
     if (r < 0 && r != -ENOENT) {
       dout(10) << __func__ << " could not remove_xattrs r = " << r << dendl;