summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Stearn <redbeard0531@gmail.com>2010-05-24 10:53:41 -0400
committerMathias Stearn <redbeard0531@gmail.com>2010-05-24 10:53:41 -0400
commitc9181b253b3216e496633dfe53f8078894a1df4c (patch)
treeed94330def4a8fbf77f383f518e7888edf10163a
parentdc461306241ec2263f16220947ac6d49b6d77ee7 (diff)
downloadmongo-c9181b253b3216e496633dfe53f8078894a1df4c.tar.gz
make isOK except any true value (1.4 backport)
-rw-r--r--client/dbclient.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/dbclient.cpp b/client/dbclient.cpp
index 7d04866eb2d..f617f7cbbbb 100644
--- a/client/dbclient.cpp
+++ b/client/dbclient.cpp
@@ -106,7 +106,7 @@ namespace mongo {
/* --- dbclientcommands --- */
bool DBClientWithCommands::isOk(const BSONObj& o) {
- return o.getIntField("ok") == 1;
+ return o["ok"].trueValue();
}
inline bool DBClientWithCommands::runCommand(const string &dbname, const BSONObj& cmd, BSONObj &info, int options) {