]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/net: use boost::thread_unsafe_counter for refcounting Connection
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jun 2018 11:49:59 +0000 (19:49 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 14 Jul 2018 07:34:31 +0000 (15:34 +0800)
seastar is basically single threaded.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/net/Connection.h

index 7248fdbe8ced932c6db27081f8ee8d7b52421333..25b756cddf2d9a6c22074127958cfd321c8da2b0 100644 (file)
@@ -24,7 +24,8 @@ namespace ceph::net {
 
 using seq_num_t = uint64_t;
 
-class Connection : public boost::intrusive_ref_counter<Connection> {
+class Connection : public boost::intrusive_ref_counter<Connection,
+                                                      boost::thread_unsafe_counter> {
  protected:
   Messenger *const messenger;
   entity_addr_t my_addr;