-
Type:
Bug
-
Resolution: Done
-
Priority:
Minor - P4
-
None
-
Affects Version/s: 2.1.0
-
Component/s: Shell
-
None
-
Environment:> db.serverBuildInfo()
{
"version" : "2.1.0",
"gitVersion" : "d674c681170337e3dfc34ae796b06fdde5ac05dd",
"sysInfo" : "Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41",
"versionArray" : [
2,
1,
0,
0
],
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}
> db.serverBuildInfo() { "version" : "2.1.0", "gitVersion" : "d674c681170337e3dfc34ae796b06fdde5ac05dd", "sysInfo" : "Linux ip-10-110-9-236 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41", "versionArray" : [ 2, 1, 0, 0 ], "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "ok" : 1 }
-
ALL
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
Accidentally issued wrong arguments to update(). There is no explicit check for arguments before the assertion fails.
> db.boundaries.update({$unset:{num_shapes:1}})
assert failed : need an object
Error("Printing Stack Trace")@:0
()@src/mongo/shell/utils.js:37
("assert failed : need an object")@src/mongo/shell/utils.js:58
(undefined,"need an object")@src/mongo/shell/utils.js:66
([object Object])@src/mongo/shell/collection.js:197
@(shell):1
Thu Jul 12 16:06:16 uncaught exception: assert failed : need an object