]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg/simple: fix wrong condition checking of writing TAG_CLOSE on closing 10343/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Jul 2016 07:29:29 +0000 (15:29 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 19 Jul 2016 07:29:29 +0000 (15:29 +0800)
commit483e5fc20e8c7a936b85525ee29ed1e94422ac86
treeb0a5597e211bbad6092e6b38ceb19cfbcf07b2bf
parentd1f681a2741ac805d1a21087023147dddd218940
msg/simple: fix wrong condition checking of writing TAG_CLOSE on closing

The sd is initialized to -1 and will be resetted to -1 whenever it is
invalidated. So "if (sd)" is not reasonable enough to determine whether
or not the sd is currently still in use.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/msg/simple/Pipe.cc