]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDCache.h: remove unneeded call to clear func 11954/head
authorMichal Jarzabek <stiopa@gmail.com>
Sun, 13 Nov 2016 19:44:07 +0000 (19:44 +0000)
committerMichal Jarzabek <stiopa@gmail.com>
Sun, 13 Nov 2016 23:24:52 +0000 (23:24 +0000)
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
src/mds/MDCache.cc

index 9044fd573ea2b2488e4b17cfcd8f0bf6a1aefb82..06e7520b865bc4addbf3b1a2225a1487eb3b3e1a 100644 (file)
@@ -817,7 +817,7 @@ void MDCache::adjust_subtree_auth(CDir *dir, mds_authority_t auth, bool do_eval)
   if (dir->inode->is_base()) {
     root = dir;  // bootstrap hack.
     if (subtrees.count(root) == 0) {
-      subtrees[root].clear();
+      subtrees[root];
       root->get(CDir::PIN_SUBTREE);
     }
   } else {
@@ -834,7 +834,7 @@ void MDCache::adjust_subtree_auth(CDir *dir, mds_authority_t auth, bool do_eval)
     // i am a new subtree.
     dout(10) << "  new subtree at " << *dir << dendl;
     assert(subtrees.count(dir) == 0);
-    subtrees[dir].clear();      // create empty subtree bounds list for me.
+    subtrees[dir];      // create empty subtree bounds list for me.
     dir->get(CDir::PIN_SUBTREE);
 
     // set dir_auth
@@ -1016,7 +1016,7 @@ void MDCache::adjust_bounded_subtree_auth(CDir *dir, set<CDir*>& bounds, mds_aut
   if (dir->ino() == MDS_INO_ROOT) {
     root = dir;  // bootstrap hack.
     if (subtrees.count(root) == 0) {
-      subtrees[root].clear();
+      subtrees[root];
       root->get(CDir::PIN_SUBTREE);
     }
   } else {
@@ -1035,7 +1035,7 @@ void MDCache::adjust_bounded_subtree_auth(CDir *dir, set<CDir*>& bounds, mds_aut
     // i am a new subtree.
     dout(10) << "  new subtree at " << *dir << dendl;
     assert(subtrees.count(dir) == 0);
-    subtrees[dir].clear();      // create empty subtree bounds list for me.
+    subtrees[dir];      // create empty subtree bounds list for me.
     dir->get(CDir::PIN_SUBTREE);
     
     // set dir_auth