]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mds: do not submit omap_rm_keys if the dir is the basedir of merge.
authorChencan <chen.can2@zte.com.cn>
Tue, 30 Jun 2020 11:30:12 +0000 (19:30 +0800)
committerChencan <chen.can2@zte.com.cn>
Thu, 9 Jul 2020 09:23:48 +0000 (17:23 +0800)
Fixes: https://tracker.ceph.com/issues/46273
Signed-off-by: Chencan <chen.can2@zte.com.cn>
src/mds/CDir.cc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 6acc5d0..d46a97c
@@ -2231,10 +2231,11 @@ void CDir::_omap_commit(int op_prio)
   };
 
   if (state_test(CDir::STATE_FRAGMENTING)) {
+    assert(committed_version == 0);
     for (auto p = items.begin(); p != items.end(); ) {
       CDentry *dn = p->second;
       ++p;
-      if (!dn->is_dirty() && dn->get_linkage()->is_null())
+      if (dn->get_linkage()->is_null())
        continue;
       write_one(dn);
     }