]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
FileStore: fix double close
authorSamuel Just <samuel.just@dreamhost.com>
Tue, 1 Feb 2011 21:48:39 +0000 (13:48 -0800)
committerSamuel Just <samuel.just@dreamhost.com>
Tue, 1 Feb 2011 22:39:27 +0000 (14:39 -0800)
commitece4f61a8df4bed2c6d4d33f2979189f16721e4f
tree2967ac1073d6c4b6d85cf53c814fa8e9a4cfbb34
parent0f3198e8c6318bf10fa782aa10be02df321debee
FileStore: fix double close

curr_fd is already closed if cp == cur_seq.  This second close
occasionally ended up closing another thread's fd.  The next open would
tend to grab that fd in op_fd or current_fd which would then get closed
by the other thread leaving op_fd or current_fd pointing to some random
file (or a closed descriptor).

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
src/os/FileStore.cc