summaryrefslogtreecommitdiff
path: root/client/distlock.cpp
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-12-13 13:13:14 -0500
committerAlberto Lerner <alerner@10gen.com>2010-12-13 13:13:22 -0500
commitd8b24cc6a8d360793400f28408458528a98d7d0f (patch)
tree2ef7775336479ac3c9e861882b3327c55641dd44 /client/distlock.cpp
parent6dfa99a573f3cdee8deb8ca076036282918e1a64 (diff)
downloadmongo-d8b24cc6a8d360793400f28408458528a98d7d0f.tar.gz
add lock holder in all lock taken paths
Diffstat (limited to 'client/distlock.cpp')
-rw-r--r--client/distlock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/distlock.cpp b/client/distlock.cpp
index 1f96068446d..b88c89fd5f0 100644
--- a/client/distlock.cpp
+++ b/client/distlock.cpp
@@ -185,6 +185,8 @@ namespace mongo {
// but we'd require analysis of the situation before a manual intervention
log(LL_ERROR) << "config.locks: " << _name << " lock is taken by old process? "
<< "remove the following lock if the process is not active anymore: " << o << endl;
+ *other = o;
+ other->getOwned();
conn.done();
return false;
}