]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: _flush should no-op if nothing to flush
authorSage Weil <sage@newdream.net>
Thu, 19 May 2011 19:21:51 +0000 (12:21 -0700)
committerSage Weil <sage@newdream.net>
Thu, 19 May 2011 22:04:31 +0000 (15:04 -0700)
commit3f43c78bb89df53762fe1de03891c7ac3ff506f1
tree8d811106f3f0877f6cfa4f2abf9601e868169f5e
parent8549fc9afb2b1e638f69684b4c936b6f65f443e1
client: _flush should no-op if nothing to flush

If there are no FILE_BUFFER cap_refs, then we can bail out early.
Otherwise we will end up dropping refs we don't have.

Signed-off-by: Sage Weil <sage@newdream.net>
src/client/Client.cc