mirror of
https://github.com/ceph/ceph
synced 2024-12-22 03:22:00 +00:00
Merge pull request #15973 from majianpeng/bluefs-async-compact-log
os/bluestore/BlueFS: clear current log entrys before dump all fnode, Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
commit
91e5d5bc20
@ -1211,6 +1211,8 @@ void BlueFS::_compact_log_async(std::unique_lock<std::mutex>& l)
|
||||
|
||||
// 2. prepare compacted log
|
||||
bluefs_transaction_t t;
|
||||
//avoid record two times in log_t and _compact_log_dump_metadata.
|
||||
log_t.clear();
|
||||
_compact_log_dump_metadata(&t);
|
||||
|
||||
// conservative estimate for final encoded size
|
||||
|
Loading…
Reference in New Issue
Block a user