]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson/osd: check existing superblock when mkfs
authorKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 12:57:14 +0000 (20:57 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 13:00:13 +0000 (21:00 +0800)
commit6b66c30b2331f0d42c8a51446ab04714047084b6
treefc6d2492d7f4c856878881612e0353ca6751c1a8
parentd04b42570b167c6bcb43acc4c49b171960aa4dba
crimson/osd: check existing superblock when mkfs

in case mkfs on an existing store.

this change mirrors the behavior of classic osd, also addresses the
assert failure when BlueStore tries to create a collection when it
already contains a colloection with the same collection id.

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