mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 00:56:44 +01:00
Call val() without log mutex
This commit is contained in:
parent
dad75855e8
commit
e6980f2e83
@ -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&)) {
|
||||
|
Loading…
Reference in New Issue
Block a user