From d0ab54bb3eebb50e6c43f26f3968b3a43d85774f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 7 Mar 2021 21:51:53 +0800 Subject: [PATCH] crimson/osd: add constness to Notify Signed-off-by: Kefu Chai --- src/crimson/osd/watch.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crimson/osd/watch.h b/src/crimson/osd/watch.h index d9f7325d3acc..c58cf3edd4a3 100644 --- a/src/crimson/osd/watch.h +++ b/src/crimson/osd/watch.h @@ -108,10 +108,10 @@ std::ostream &operator<<(std::ostream &out, const notify_reply_t &rhs); class Notify { std::set watchers; - notify_info_t ninfo; + const notify_info_t ninfo; crimson::net::ConnectionRef conn; - uint64_t client_gid; - uint64_t user_version; + const uint64_t client_gid; + const uint64_t user_version; bool complete{false}; bool discarded{false}; seastar::timer timeout_timer{ -- 2.47.3