mds: fix snap lookups in CInode encoding

This commit is contained in:
Greg Farnum 2010-07-19 10:51:59 -07:00
parent f5487fd11b
commit 9ac243eb3d

View File

@ -1652,7 +1652,7 @@ int CInode::encode_inodestat(bufferlist& bl, Session *session,
if (p->second.first > snapid) {
if (p != old_inodes.begin())
--p;
else dout(0) << "old_inode.begin() starts after snapid!" << dendl;
else dout(0) << "old_inode lower_bound starts after snapid!" << dendl;
}
dout(15) << "encode_inodestat snapid " << snapid
<< " to old_inode [" << p->second.first << "," << p->first << "]"