From 80bd8d169d617a90cd515fd720ba38720066617d Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 22 Dec 2009 10:19:48 -0800 Subject: [PATCH] SERVER-446 support multi update mode v8 --- scripting/v8_db.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripting/v8_db.cpp b/scripting/v8_db.cpp index e766c0637a1..e07f7ef2cf5 100644 --- a/scripting/v8_db.cpp +++ b/scripting/v8_db.cpp @@ -280,9 +280,10 @@ namespace mongo { v8::Handle o = args[2]->ToObject(); bool upsert = args.Length() > 3 && args[3]->IsBoolean() && args[3]->ToBoolean()->Value(); - + bool multi = args.Length() > 4 && args[4]->IsBoolean() && args[4]->ToBoolean()->Value(); + try { - conn->update( ns , v8ToMongo( q ) , v8ToMongo( o ) , upsert ); + conn->update( ns , v8ToMongo( q ) , v8ToMongo( o ) , upsert, multi ); } catch ( ... ){ return v8::ThrowException( v8::String::New( "socket error on remove" ) );