summaryrefslogtreecommitdiffstats
path: root/src/msg
diff options
context:
space:
mode:
authorMax Kellermann <max.kellermann@ionos.com>2024-10-03 17:12:59 +0200
committerMax Kellermann <max.kellermann@ionos.com>2024-12-10 12:05:31 +0100
commitef6a48c8bbe70bda09240ab7ddd4f23e36c2dae7 (patch)
tree059a407e1d6bc1bb6016f080849a302c03196324 /src/msg
parentMerge pull request #60997 from MaxKellermann/sstring__char8_t (diff)
downloadceph-ef6a48c8bbe70bda09240ab7ddd4f23e36c2dae7.tar.xz
ceph-ef6a48c8bbe70bda09240ab7ddd4f23e36c2dae7.zip
msg/async/Event: make the pipe byte static
This avoids a stack allocation and assignment. Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Diffstat (limited to 'src/msg')
-rw-r--r--src/msg/async/Event.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msg/async/Event.cc b/src/msg/async/Event.cc
index 08e117ea54a..16abb1368b0 100644
--- a/src/msg/async/Event.cc
+++ b/src/msg/async/Event.cc
@@ -347,7 +347,7 @@ void EventCenter::wakeup()
return ;
ldout(cct, 20) << __func__ << dendl;
- char buf = 'c';
+ static constexpr char buf = 'c';
// wake up "event_wait"
#ifdef _WIN32
int n = send(notify_send_fd, &buf, sizeof(buf), 0);