diff options
author | Alberto Lerner <alerner@10gen.com> | 2010-12-13 13:13:14 -0500 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2010-12-13 13:13:22 -0500 |
commit | d8b24cc6a8d360793400f28408458528a98d7d0f (patch) | |
tree | 2ef7775336479ac3c9e861882b3327c55641dd44 | |
parent | 6dfa99a573f3cdee8deb8ca076036282918e1a64 (diff) | |
download | mongo-d8b24cc6a8d360793400f28408458528a98d7d0f.tar.gz |
add lock holder in all lock taken paths
-rw-r--r-- | client/distlock.cpp | 2 |
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; } |