]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
monc: protect msg source check with monc_lock
authorSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 17:04:07 +0000 (10:04 -0700)
committerSage Weil <sage@newdream.net>
Mon, 13 Jun 2011 17:04:07 +0000 (10:04 -0700)
commit35663dee2f7128df642594d0ebdf16640fe1f29a
treea0671d14a3515ace0722a9ca59eeadbe7c0383e7
parent0f8fbd562cc58351541ac4f60a1dc98bdd1c91bf
monc: protect msg source check with monc_lock

Push the locking up into ms_dispatch, so that we protect the source check
and don't race with session reopens.  Also simplifies things a bit.

Fixes: #1151
Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/MonClient.cc