]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ProfLogger: write out length of message first
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 18 Jul 2011 22:51:16 +0000 (15:51 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Mon, 18 Jul 2011 22:51:16 +0000 (15:51 -0700)
commitf8b4aa3cdfc1d61ec94df49763176755fc05163e
treef119e45f875bb7a2b1f18cc0ab29a6e530ef6b91
parent325951dd7f0dfe4da0ea1409fc0673b23fc70371
ProfLogger: write out length of message first

Write out the length of the message first, so that it's easier to write
clients. Also, serialize ProfLogger instances to memory rather than
directly to the socket, to avoid blocking while holding one of the
ProfLogger locks.

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