0
0
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:
Aaron 2009-03-02 13:18:47 -05:00
parent dad75855e8
commit e6980f2e83

View File

@ -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&)) {