]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: improve OSD robustness.
authorIgor Fedotov <ifedotov@suse.com>
Thu, 29 Sep 2022 11:52:45 +0000 (14:52 +0300)
committerIgor Fedotov <igor.fedotov@croit.io>
Thu, 21 Mar 2024 15:20:43 +0000 (18:20 +0300)
commitd6f9bc75bb06e532b8515bb3cc7e055aa555b947
treee194281d59cb2a050cd6bc34e1fcca857f8515e2
parent9c4e0c34f1949e7d705fe7ff26a4f4b729df7a45
osd: improve OSD robustness.

Achieved by
1. osd superblock data is replicated in onode's OMAP - hence one can
   recover from that after onode's content is corrupted.
2. pg_num_history object gets full overwrite which eliminatess the need to
   merge with previous data (and hence reading corrupted data wouldn't
   kill OSD).

Signed-off-by: Igor Fedotov <ifedotov@croit.io>
(cherry picked from commit 2e9c723b3eddd71b8226be790cc71f5c065e819d)
src/osd/OSD.cc
src/osd/OSD.h
src/osd/osd_types.h