From 83fad1c7f2be14c9d2f00c4b5ef262053214682b Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Thu, 21 Feb 2013 13:24:42 -0800 Subject: [PATCH] FileStore::_setattrs no need to grab an Index lock for the omap operations Signed-off-by: Samuel Just --- src/os/FileStore.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index c53bd79b2edef..a7390361d4681 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -3883,12 +3883,6 @@ int FileStore::_setattrs(coll_t cid, const hobject_t& oid, map } 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; -- 2.39.5