mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
msg/async/Event: don't execute inline if nonwait
Signed-off-by: Haomai Wang <haomai@xsky.com>
This commit is contained in:
parent
4b5bb65b61
commit
1f65a355be
@ -206,7 +206,7 @@ class EventCenter {
|
||||
assert(i < MAX_EVENTCENTER && global_centers);
|
||||
EventCenter *c = global_centers->centers[i];
|
||||
assert(c);
|
||||
if (c->in_thread()) {
|
||||
if (!nowait && c->in_thread()) {
|
||||
f();
|
||||
return ;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user