]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: remove spurious warning
authorSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 23:45:46 +0000 (15:45 -0800)
committerSage Weil <sage@newdream.net>
Mon, 10 Nov 2008 23:45:46 +0000 (15:45 -0800)
src/mds/MDCache.cc

index c33b5731c7ccc5b7c3fc6faaf344b92cc8b973e1..df3a8d1bfe9520176d6e4c5d24d257ba2f664244 100644 (file)
@@ -1030,7 +1030,7 @@ CInode *MDCache::cow_inode(CInode *in, snapid_t last)
   }
   if (oldin->is_any_caps())
     oldin->filelock.set_state(LOCK_LOCK);
-  else {
+  else if (oldin->inode.max_size) {
     dout(10) << "cow_inode WARNING max_size " << oldin->inode.max_size << " > 0 on " << *oldin << dendl;
     //oldin->inode.max_size = 0;
   }