]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: make 'log ...' command wait for commit before reply
authorSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 18:11:50 +0000 (11:11 -0700)
committerSage Weil <sage@inktank.com>
Thu, 20 Jun 2013 18:11:50 +0000 (11:11 -0700)
commit4a038d6df531ac2e9b4268d9b730dca1e38c32a9
tree786552f4c0a924cf4cb17b91d382c315af2eb8b2
parent5de54f6a79ebee051033b28b3bcb7352d1da0e9b
mon: make 'log ...' command wait for commit before reply

Previously we would just dump the command argument to our local log client
and reply immediately, which could lose the message if we then restarted.
Instead, commit directly and wait before replying.

Also, log as the actual client, not as the monitor processing the message.

Fixes: #5409
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/mon/LogMonitor.cc
src/mon/Monitor.cc