]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph: remove bad assert for old frag stat
authorSage Weil <sage@newdream.net>
Wed, 3 Nov 2010 18:03:37 +0000 (11:03 -0700)
committerSage Weil <sage@newdream.net>
Wed, 3 Nov 2010 18:03:37 +0000 (11:03 -0700)
It's normal for old fragstat info to be mismatched (stat !=
accounted_stat).

Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/CInode.cc

index 149b240e2167bf3d1d5ef0f24a14623cae8d5d1e..69130eee70775a6148a061e1ada7f440fd59c1ad 100644 (file)
@@ -1329,8 +1329,6 @@ void CInode::decode_lock_state(int type, bufferlist& bl)
                mdlog->submit_entry(le, new C_Inode_FragUpdate(this, dir, mut));
              } else {
                dout(10) << fg << " accounted_fragstat unchanged at v" << fragstat.version << dendl;
-               assert(pf->fragstat == fragstat);
-               assert(pf->accounted_fragstat == fragstat);
              }
            }
          }
@@ -1415,8 +1413,6 @@ void CInode::decode_lock_state(int type, bufferlist& bl)
                mdlog->submit_entry(le, new C_Inode_FragUpdate(this, dir, mut));
              } else {
                dout(10) << fg << " accounted_rstat unchanged at v" << rstat.version << dendl;
-               assert(pf->rstat == rstat);
-               assert(pf->accounted_rstat == rstat);
              }
            }
          }