]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix decoding of InodeStore::oldest_snap 3717/head
authorYan, Zheng <zyan@redhat.com>
Thu, 12 Feb 2015 12:24:45 +0000 (20:24 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 12 Feb 2015 12:43:26 +0000 (20:43 +0800)
commitfd830205bd35fcd00c67af276a4e6a8da1cda487
tree5612ee38e00ce7df4b3c72df8c3a2bb5ca6f497f
parent26dfad798d5193295cbe86902a6bbcf773b03974
mds: fix decoding of InodeStore::oldest_snap

There is no ENCODE_START/FINISH block when encoding inode that
embedded in dentry. So we can't use encoding version to check
if the buffer contains InodeStore::oldest_snap. Instead, we check
if the buffer iterator reaches end of buffer.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
src/mds/CInode.cc
src/mds/CInode.h