]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: fix mds damaged due to unexpected journal length 24194/head
authorZhi Zhang <willzzhang@tencent.com>
Thu, 20 Sep 2018 02:55:46 +0000 (10:55 +0800)
committerZhi Zhang <willzzhang@tencent.com>
Thu, 20 Sep 2018 02:55:46 +0000 (10:55 +0800)
commitd17790f299c282dff9c28569b10c46a54b4cfd51
treeb9139f766b6a49a85fad1197af201ff99837cdfc
parent20cfc0212a2df0ac787b639d27d141b6036432eb
mds: fix mds damaged due to unexpected journal length

We used first next_safe_pos in pending_safe to update journal's safe_pos, but
it might not be flushed at this time, so journal's header may get incorrect
write_pos in some case, which could cause mds damaged.

This fix is trying to use current min next_safe_pos in pending_safe to update
journal's safe_pos.

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
src/osdc/Journaler.cc