0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

make info thread safe SERVER-674

This commit is contained in:
Eliot Horowitz 2010-02-26 11:33:27 -05:00
parent 066b8376cf
commit 27e94db45c

View File

@ -49,13 +49,13 @@ namespace mongo {
};
int state;
string info; // commentary about our current state
ThreadSafeString info; // commentary about our current state
string arbHost; // "-" for no arbiter. "host[:port]"
int remotePort;
string remoteHost;
string remote; // host:port if port specified.
// int date; // -1 not yet set; 0=slave; 1=master
string getInfo() {
stringstream ss;
ss << " state: ";