]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: new, improved monitor request/reply routing
authorSage Weil <sage@newdream.net>
Fri, 9 Oct 2009 23:33:15 +0000 (16:33 -0700)
committerSage Weil <sage@newdream.net>
Fri, 9 Oct 2009 23:33:15 +0000 (16:33 -0700)
commitabd6254199a605ff9199fe0ee021c6de9afbc4c3
treec341d9706d09994778bfd8ffb332967cf41fcfab
parentc3916c78cc11f98f71e9657aad6b81aaeaf8917d
mon: new, improved monitor request/reply routing

We track which monitor requests are forwarded to the leader in the mon
Session, and clean them out when we send a reply back via MRoute.

Only forward once, and resend pending requests on election completion.
This may lead to harmless dups, but at least we know our request didn't
get dropped on the floor by another mon failing somewhere.

This changes the monitor protocol by expanding the PaxosServiceMessage
header.
16 files changed:
src/TODO
src/include/ceph_fs.h
src/messages/MRoute.h
src/messages/PaxosServiceMessage.h
src/mon/ClassMonitor.cc
src/mon/ClassMonitor.h
src/mon/ClientMonitor.cc
src/mon/LogMonitor.cc
src/mon/LogMonitor.h
src/mon/MDSMonitor.cc
src/mon/Monitor.cc
src/mon/Monitor.h
src/mon/PaxosService.cc
src/mon/Session.h
src/msg/Message.cc
src/msg/Message.h