]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
msg/Accepter: only close socket if >= 0
authorSage Weil <sage@inktank.com>
Sat, 17 Nov 2012 00:10:30 +0000 (16:10 -0800)
committerSage Weil <sage@inktank.com>
Sat, 17 Nov 2012 00:10:56 +0000 (16:10 -0800)
commit25f003ba5f8ef9d58b794fb718ef8d637fd67c6a
tree0fb70337845e2c0cff046ca1045deb501fece845
parent30373ce8723434cca2335cf87bcfd1ed223affe9
msg/Accepter: only close socket if >= 0

It is possible for rebind() to fail, in which case the OSD will go through
it's shutdown procedure and call stop().  This is simpler than trying to
avoid calling stop() when rebind() fails.

Fixes: #3504
Signed-off-by: Sage Weil <sage@inktank.com>
src/msg/Accepter.cc