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:
parent
066b8376cf
commit
27e94db45c
@ -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: ";
|
||||
|
Loading…
Reference in New Issue
Block a user