From 8d913e98e8058c6322975a858f884a769735bb43 Mon Sep 17 00:00:00 2001 From: Antonin Kral Date: Thu, 7 Apr 2011 07:35:46 +0200 Subject: Imported Upstream version 1.8.1 --- s/commands_public.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 's/commands_public.cpp') diff --git a/s/commands_public.cpp b/s/commands_public.cpp index 02000a0..5b1ecaf 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; -- cgit v1.2.3