From: Yuval Lifshitz Date: Mon, 9 Sep 2024 15:37:24 +0000 (+0000) Subject: rgw/notify: add copy ctor to token waiter X-Git-Tag: v20.0.0~962^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=baab1dc6463a96456b56852907cf5cb6249f2a3c;p=ceph.git rgw/notify: add copy ctor to token waiter Signed-off-by: Yuval Lifshitz --- diff --git a/src/rgw/driver/rados/rgw_notify.cc b/src/rgw/driver/rados/rgw_notify.cc index 3f576120a8ca..73612eaa2ac3 100644 --- a/src/rgw/driver/rados/rgw_notify.cc +++ b/src/rgw/driver/rados/rgw_notify.cc @@ -154,6 +154,9 @@ private: struct token { tokens_waiter& waiter; + token(const token& other) : waiter(other.waiter) { + ++waiter.pending_tokens; + } token(tokens_waiter& _waiter) : waiter(_waiter) { ++waiter.pending_tokens; }