]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: drop forwarded requests after an election 241/head
authorSage Weil <sage@inktank.com>
Tue, 23 Apr 2013 21:06:41 +0000 (14:06 -0700)
committerSage Weil <sage@inktank.com>
Tue, 23 Apr 2013 21:06:41 +0000 (14:06 -0700)
commit95ed73a73badd7d3998b71c40adeb185bdb567bd
tree6d826c9057198af7d033577a969bb267446ba82d
parentab257070922a5369dd980549ca206c3b718e8c86
mon: drop forwarded requests after an election

On each election, we resend routed requests to the new leader (or
requeue for ourselves).  Therefore, if we receive a forwarded request,
we should drop it on the floor if there is a new election.  Add a field
in the PaxosServiceMessage struct to track which election epoch we
received the request in, and drop it in PaxosService::dispatch() if
that is in the past.

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