mirror of
https://github.com/ceph/ceph
synced 2026-08-03 07:22:20 +00:00
crimson/os/alienstore/alien_log: _flush concurrently
In continuation to c15e56e386
Authored-by: Yingxin Cheng <yingxin.cheng@intel.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
This commit is contained in:
parent
19aa8fc73d
commit
511af83e27
@ -17,8 +17,7 @@ CnLog::~CnLog() {
|
||||
}
|
||||
|
||||
void CnLog::_flush(EntryVector& q, bool crash) {
|
||||
// XXX: the waiting here will block the thread for an indeterministic peroid
|
||||
seastar::alien::submit_to(inst, shard, [&q] {
|
||||
std::ignore = seastar::alien::submit_to(inst, shard, [&q] {
|
||||
for (auto& it : q) {
|
||||
crimson::get_logger(it.m_subsys).log(
|
||||
crimson::to_log_level(it.m_prio),
|
||||
@ -26,7 +25,7 @@ void CnLog::_flush(EntryVector& q, bool crash) {
|
||||
it.strv());
|
||||
}
|
||||
return seastar::make_ready_future<>();
|
||||
}).wait();
|
||||
});
|
||||
q.clear();
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user