]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: add constness to Notify 39900/head
authorKefu Chai <kchai@redhat.com>
Sun, 7 Mar 2021 13:51:53 +0000 (21:51 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 7 Mar 2021 13:51:58 +0000 (21:51 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/watch.h

index d9f7325d3accacb1d4d2f5669a6116e6d51eca98..c58cf3edd4a3ebcd90bb4a7ed23b36d4f5f69bb2 100644 (file)
@@ -108,10 +108,10 @@ std::ostream &operator<<(std::ostream &out, const notify_reply_t &rhs);
 
 class Notify {
   std::set<WatchRef> 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<seastar::lowres_clock> timeout_timer{