]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/net/Socket: do not reset FixedCPUServerSocket::shutdown_gate
authorKefu Chai <kchai@redhat.com>
Thu, 13 May 2021 16:02:47 +0000 (00:02 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 13 May 2021 16:08:13 +0000 (00:08 +0800)
commit6ee29c6642fa223f51602768abcb42132b4f949d
tree07c06a60a7674900d17a3e00826556728f87742b
parent8544139be58186f6436a5dd302c1a728b2d74ba6
crimson/net/Socket: do not reset FixedCPUServerSocket::shutdown_gate

the copy constructor of seastar::gate is deleted explicitly. so we
cannot reset FixedCPUServerSocket::shutdown_gate by assigning a new
seastar::gate to it.

since we don't reuse a FixedCPUServerSocket after calling
FixedCPUServerSocket::destroy(), it's safe to leave a closed gate after
calling FixedCPUServerSocket::reset()

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