summaryrefslogtreecommitdiff
path: root/src/mongo/client/distlock.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/distlock.cpp')
-rw-r--r--src/mongo/client/distlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/client/distlock.cpp b/src/mongo/client/distlock.cpp
index 6097733d5aa..56e8e296d06 100644
--- a/src/mongo/client/distlock.cpp
+++ b/src/mongo/client/distlock.cpp
@@ -50,7 +50,7 @@ namespace mongo {
// cache process string
stringstream ss;
- ss << getHostName() << ":" << cmdLine.port << ":" << time(0) << ":" << rand();
+ ss << getHostName() << ":" << serverGlobalParams.port << ":" << time(0) << ":" << rand();
_cachedProcessString = new string( ss.str() );
}