diff options
author | Mathias Stearn <mathias@10gen.com> | 2011-03-14 17:54:11 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-03-16 17:46:50 -0400 |
commit | 0dcc19701f1f5d5b4a99be6d1f49dc189a3fb32b (patch) | |
tree | eaee93bbe53f3c207cc101e2f576f67801ea77e2 | |
parent | f1488a594f190b77d1e4d5e13a18ef6feb43b789 (diff) | |
download | mongo-0dcc19701f1f5d5b4a99be6d1f49dc189a3fb32b.tar.gz |
Better handling of sharded findAndModify output SERVER-2698 180?
-rw-r--r-- | s/commands_public.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/s/commands_public.cpp b/s/commands_public.cpp index 02000a0ff57..5b1ecaf33ca 100644 --- a/s/commands_public.cpp +++ b/s/commands_public.cpp @@ -545,12 +545,8 @@ namespace mongo { bool ok = conn->runCommand( conf->getName() , cmdObj , res ); conn.done(); - if (ok || (strcmp(res["errmsg"].valuestrsafe(), "No matching object found") != 0)) { - result.appendElements(res); - return ok; - } - - return true; + result.appendElements(res); + return ok; } } findAndModifyCmd; |