From e6980f2e83fafe0695636698aaa00a5385b30499 Mon Sep 17 00:00:00 2001 From: Aaron Date: Mon, 2 Mar 2009 13:18:47 -0500 Subject: [PATCH] Call val() without log mutex --- util/log.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/log.h b/util/log.h index 75352ac4bf8..db1a6c37c52 100644 --- a/util/log.h +++ b/util/log.h @@ -124,8 +124,9 @@ namespace mongo { Logstream& operator<<(unsigned long long x) LOGIT Logstream& operator<<(bool x) LOGIT Logstream& operator<<(const LazyString& x) { + string res = x.val(); boostlock lk(mutex); - cout << x.val(); + cout << res; return *this; } Logstream& operator<< (ostream& ( *_endl )(ostream&)) {