]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MDCache: update assert to account for being a slave.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 23 Mar 2011 17:41:36 +0000 (10:41 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Sun, 17 Apr 2011 03:59:57 +0000 (20:59 -0700)
Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/mds/MDCache.cc

index bae2a70ae8dfd5d15143a08885873485e8f9a49f..51b4b483feb1fbf635e6df5c56934d0a5c48bf53 100644 (file)
@@ -1898,7 +1898,7 @@ void MDCache::predirty_journal_parents(Mutation *mut, EMetaBlob *blob,
       // because we are about to write into the dirfrag fnode and that needs
       // to commit before the lock can cycle.
      if (linkunlink) {
-       assert(parent->inode->nestlock.get_num_wrlocks());
+       assert(parent->inode->nestlock.get_num_wrlocks() || mut->is_slave());
      }
 
       if (mut->wrlocks.count(&parent->inode->nestlock) == 0) {