ceph: only send one flushsnap per cap_snap per mds session
authorSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 15:03:08 +0000 (08:03 -0700)
committerSage Weil <sage@newdream.net>
Fri, 17 Sep 2010 15:03:08 +0000 (08:03 -0700)
Sending multiple flushsnap messages is problematic because we ignore
the response if the tid doesn't match, and the server may only respond to
each one once.  It's also a waste.

So, skip cap_snaps that are already on the flushing list, unless the caller
tells us to resend (because we are reconnecting).

Signed-off-by: Sage Weil <sage@newdream.net>

No differences found