]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: trigger the completion in _flush when short-cutting
authorGreg Farnum <greg@inktank.com>
Thu, 7 Feb 2013 00:35:49 +0000 (16:35 -0800)
committerGreg Farnum <greg@inktank.com>
Thu, 7 Feb 2013 00:47:51 +0000 (16:47 -0800)
commit46d7dbd3472f26926c6d048bfc3c150074bfd283
tree5fdf58647e5985ef8ea2111fd045c55aa5067253
parent08b82b3ef6b43283e35fd4e56eb5c78651345bea
client: trigger the completion in _flush when short-cutting

We missed a shortcut return from _flush() when doing
e9a6694d0151b79c3a3b44cee5df8e3d4dcbfc2c, so _fsync() calls
were failing. To fix, if _flush discovers there's nothing to flush,
trigger the completion by calling onfinish->finish().

Fixes #4038

Signed-off-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/client/Client.cc