diff options
author | Aaron <aaron@10gen.com> | 2009-03-02 13:18:47 -0500 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-03-02 13:18:47 -0500 |
commit | e6980f2e83fafe0695636698aaa00a5385b30499 (patch) | |
tree | ce0180d169bbfc2e7a04a24138abaddc3af2d202 /util/log.h | |
parent | dad75855e8ff7509559c10efe1fd5d1cbb52655e (diff) | |
download | mongo-e6980f2e83fafe0695636698aaa00a5385b30499.tar.gz |
Call val() without log mutex
Diffstat (limited to 'util/log.h')
-rw-r--r-- | util/log.h | 3 |
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&)) { |