]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/alienstore/alien_log: _flush concurrently 55262/head
authorMatan Breizman <mbreizma@redhat.com>
Sun, 21 Jan 2024 09:33:59 +0000 (09:33 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Sun, 21 Jan 2024 09:48:39 +0000 (09:48 +0000)
In continuation to c15e56e386251403a876454f6a4aa186284565e1

Authored-by: Yingxin Cheng <yingxin.cheng@intel.com>
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/crimson/os/alienstore/alien_log.cc

index a0f5b03a5d39d712fdfdb0540cd5188a8d22f55f..822b2f3ab5193a925fff0d1b25148cf970eef20f 100644 (file)
@@ -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;
 }