diff options
author | Antonin Kral <a.kral@bobek.cz> | 2012-03-01 13:43:25 +0100 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2012-03-01 13:43:25 +0100 |
commit | ba59b00736b5b8dc0f0bd46397575aaf0cd4d44f (patch) | |
tree | 6364cf3f69677758a13f7aa5f6f06a8ebb652d98 /client/distlock.cpp | |
parent | f0d9a01bccdaeb466c12c92057914bbfef59526c (diff) | |
download | mongodb-ba59b00736b5b8dc0f0bd46397575aaf0cd4d44f.tar.gz |
Imported Upstream version 2.0.3
Diffstat (limited to 'client/distlock.cpp')
-rw-r--r-- | client/distlock.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/client/distlock.cpp b/client/distlock.cpp index 595fc38..73ee130 100644 --- a/client/distlock.cpp +++ b/client/distlock.cpp @@ -111,6 +111,9 @@ namespace mongo { // replace it for a quite a while) // if the lock is taken, the take-over mechanism should handle the situation auto_ptr<DBClientCursor> c = conn->query( DistributedLock::locksNS , BSONObj() ); + // TODO: Would be good to make clear whether query throws or returns empty on errors + uassert( 16060, str::stream() << "cannot query locks collection on config server " << conn.getHost(), c.get() ); + set<string> pids; while ( c->more() ) { BSONObj lock = c->next(); |