]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
FileStore: remove dead code
authorGreg Farnum <greg@inktank.com>
Thu, 24 Apr 2014 22:38:51 +0000 (15:38 -0700)
committerGreg Farnum <greg@inktank.com>
Wed, 11 Jun 2014 17:48:59 +0000 (10:48 -0700)
This case wasn't reachable when it was introduced, and it's still not.

Signed-off-by: Greg Farnum <greg@inktank.com>
src/os/FileStore.cc

index e0021a09aea77543d482dc84e872a33de1b7cc24..f183b3a3f4c5863de3f7fc1a83638740c319ecfc 100644 (file)
@@ -3822,12 +3822,6 @@ int FileStore::_setattrs(coll_t cid, const ghobject_t& oid, map<string,bufferptr
 
     if (!inline_set.count(p->first) &&
          inline_set.size() >= m_filestore_max_inline_xattrs) {
-       if (inline_set.count(p->first)) {
-         inline_set.erase(p->first);
-         r = chain_fremovexattr(**fd, n);
-         if (r < 0)
-           goto out_close;
-       }
        omap_set[p->first].push_back(p->second);
        continue;
     }