]> 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)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Tue, 1 Feb 2011 19:02:15 +0000 (11:02 -0800)
commit06fe1320efe7285f2bc76bcf81c19671f44a70df
treefa38b5dc93964c1d9a51ed8b0a8774611b87b91f
parent16ffcf771ec7136ac1d7b817737726ab6fdd259f
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