-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.3.3
-
Component/s: None
-
None
-
Environment:ubuntu 9.10, linux 32-bit build (1.3.3), java driver and mongo shell (1.3.3)
After a mapReduce command has been performed in a database over one connection, an attempt to drop the same database in a second connection will silently fail. The command returns no error, but the database remains.
To reproduce, use the mongo shell to create two connections.
Connection1:
1. use mydb
2. db.items.save(
)
3. res = db.items.mapReduce("function()
", "function(k,v) { var c=0; for(i in v)
{ c+= v[i]; } return c; }");
4. db[res.result].find()
Connection2:
1. use mydb
2. db.dropDatabase()
Expect: Either an error message stating a decent reason why the database could not be deleted, or the database to go away.
Actual: "show dbs" still lists "mydb"