]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
log: fix locking typo/stupid for dump_recent()
authorSage Weil <sage@inktank.com>
Wed, 2 Jan 2013 21:58:44 +0000 (13:58 -0800)
committerSage Weil <sage@inktank.com>
Thu, 3 Jan 2013 01:01:32 +0000 (17:01 -0800)
commit43cba617aa0247d714632bddf31b9271ef3a1b50
tree42c30523d5aa72f9313131464eeeaf1f59e76c74
parentd8940d15c330d05c8a198ff7dde16df748938b65
log: fix locking typo/stupid for dump_recent()

We weren't locking m_flush_mutex properly, which in turn was leading to
racing threads calling dump_recent() and garbling the crash dump output.

Backport: bobtail, argonaut
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Dan Mick <dan.mick@inktank.com>
src/log/Log.cc