]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: misc assertions about truncation
authorSage Weil <sage@newdream.net>
Wed, 30 Nov 2011 01:21:42 +0000 (17:21 -0800)
committerSage Weil <sage@newdream.net>
Mon, 19 Dec 2011 22:02:10 +0000 (14:02 -0800)
Signed-off-by: Sage Weil <sage@newdream.net>
src/mds/MDCache.cc

index c5d276a49daa9806fe81b687aaf6dc5c496ff954..f72d8ef662d427ef01f3f499e4c17341858b1682 100644 (file)
@@ -5234,6 +5234,9 @@ void MDCache::_truncate_inode(CInode *in, LogSegment *ls)
           << " on " << *in << dendl;
 
   assert(pi->is_truncating());
+  assert(pi->truncate_size < (1ULL << 63));
+  assert(pi->truncate_from < (1ULL << 63));
+  assert(pi->truncate_size < pi->truncate_from);
 
   in->auth_pin(this);