summaryrefslogtreecommitdiff
path: root/util/log.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-03-02 13:18:47 -0500
committerAaron <aaron@10gen.com>2009-03-02 13:18:47 -0500
commite6980f2e83fafe0695636698aaa00a5385b30499 (patch)
treece0180d169bbfc2e7a04a24138abaddc3af2d202 /util/log.h
parentdad75855e8ff7509559c10efe1fd5d1cbb52655e (diff)
downloadmongo-e6980f2e83fafe0695636698aaa00a5385b30499.tar.gz
Call val() without log mutex
Diffstat (limited to 'util/log.h')
-rw-r--r--util/log.h3
1 files changed, 2 insertions, 1 deletions
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&)) {