]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: do not decode EMetaBlob::fullbit struct_v < 8 35931/head
authorKefu Chai <kchai@redhat.com>
Fri, 3 Jul 2020 12:33:04 +0000 (20:33 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Jul 2020 17:19:37 +0000 (01:19 +0800)
commit65b04085acafe37d347324fea87dfc6cd2d0d7a0
treefdfa323c1e1298322434f97668748d1a5518673f
parentef10bee7c7326d704a9b02064d92916179705eb8
mds: do not decode EMetaBlob::fullbit struct_v < 8

the struct_v of EMetaBlob::fullbit::encode was bumped from 7 to 8 in
d62c67ca2041797fc7aa212ae4a37ba91e5620e7, the oldest release containing
this change was hammer rc1.

`EMetaBlob::fullbit` is used to persist dentry + inode as part of
journal, after the journal is flushed to the metadata pool, and applied to
dirty metadata, the flushed segments are trimmed. also, it's not allowed
to upgrade a Ceph cluster across 2 releases. so, there is no need
to decode an on-disk struct which will be trimmmed as part of journal
recycling, and that struct was encoded in hammer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mds/journal.cc