]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/MonClient: only send new subscriptions
authorSage Weil <sage@redhat.com>
Wed, 7 Oct 2015 04:09:18 +0000 (00:09 -0400)
committerSage Weil <sage@redhat.com>
Mon, 23 Nov 2015 13:38:50 +0000 (08:38 -0500)
commit7fcffe3d9f748c8f3addf57fdfa6a6bf2fdeff66
treeebe3bc087bf7cd109733482298d8ccbcba3ca804
parentc85b15234afb76eb66943f981232ecc78f3b1a4a
mon/MonClient: only send new subscriptions

Instead of resending all subscriptions, only send the new ones.  This
avoids races like

 - ask for 4+
 - mon sends maps 4-50
 - ask for 4+ and something else
 - mon has to resend same maps and the other thing

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc
src/mon/MonClient.h