]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: allow others to sync from us across bootstrap calls
authorSage Weil <sage@inktank.com>
Tue, 30 Jul 2013 00:14:57 +0000 (17:14 -0700)
committerSage Weil <sage@inktank.com>
Tue, 30 Jul 2013 00:14:57 +0000 (17:14 -0700)
commitb8af38b6fc161691d637631d9ce8ab84fb3d27c7
tree4b68e663e8f92901338761295baaa157ed810f90
parent634dcf3362a068b0b459cc64bd31db7768a1388b
mon: allow others to sync from us across bootstrap calls

If someone is syncing from us and there is an election, they currently get
reset and have to restart their sync.  This can lead to situations where
they can never finish, e.g., when the load from them syncing makes us time
out commits and call elections.

There is nothing that changes during bootstrap that would prevent a sync
from proceeding.  The only time we need to stop providing is when we
ourselves decide to sync from someone else; modify that reset call to
reset provider state.  All other resets become requester resets.

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