diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2010-05-24 10:53:41 -0400 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2010-05-24 10:53:41 -0400 |
commit | c9181b253b3216e496633dfe53f8078894a1df4c (patch) | |
tree | ed94330def4a8fbf77f383f518e7888edf10163a | |
parent | dc461306241ec2263f16220947ac6d49b6d77ee7 (diff) | |
download | mongo-c9181b253b3216e496633dfe53f8078894a1df4c.tar.gz |
make isOK except any true value (1.4 backport)
-rw-r--r-- | client/dbclient.cpp | 2 |
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) { |