]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
dout: use recursive mutex for dout
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 1 Jun 2011 18:37:34 +0000 (11:37 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 1 Jun 2011 18:42:49 +0000 (11:42 -0700)
commite340bfe13d4a86d01d1d74b03c538950830d770d
tree7b316adaf1011900c4bc9233d0210ef1aebd1661
parent44770df84398b4f19fded37df4b37d6a8671444d
dout: use recursive mutex for dout

Using a recursive mutex for dout is desirable because it allows us to
survive situations like this:

> foo() { dout << "foo" << dendl; }
> dout(0) << foo() << dendl;

These cases should be fixed because they produce garbled output.
However, with this change, at least they will not cause deadlock.

Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/common/ceph_context.cc