]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: use swap for deferred_stable when not bluefs_layout.single_shared_device()
authorwangyunqing <wangyunqing@inspur.com>
Wed, 11 May 2022 08:41:13 +0000 (16:41 +0800)
committerwangyunqing <wangyunqing@inspur.com>
Wed, 11 May 2022 08:58:03 +0000 (16:58 +0800)
commit234d1c854494d96e5f06b7c29dc8463bc7b2963e
tree7278210e3198bec8fdc19ae9ff72462aa20ad103
parentbe1c083b647c310075ac48d1be2932f8978ac630
os/bluestore: use swap for deferred_stable when not bluefs_layout.single_shared_device()

Fixes: https://tracker.ceph.com/issues/55608
When `bluefs_layout.single_shared_device()` is false and `deferred_done` is not empty, the `deferred_stable_queue` is always empty which make `deferred_stable` empty also.
So we can use swap instead of insert when insert key of `deferred_done` to `deferred_stable`.

Signed-off-by: wangyunqing <wangyunqing@inspur.com>
src/os/bluestore/BlueStore.cc