-
Type:
Bug
-
Resolution: Works as Designed
-
Priority:
Major - P3
-
None
-
Affects Version/s: 2.3
-
Component/s: Operations
-
None
-
Environment:MongoDB 3.2.10, windows 10 64-bit (the same on centOS)
-
Fully Compatible
For example, I have collection wtih documents count a little bit more than int.MaxValue.
DeleteMany to all documents on this collection returns DeletedCount (long). This DeletedCount will be negative, because an overflow has occured.
var mongoServer = Create("mongodb://localhost:27017", 1024, 1024); var db = mongoServer.GetDatabase("overflow"); var coll = db.GetCollection<MyInt>("overflowcoll"); var deletedCount = coll.DeleteManyAsync(filter) .GetAwaiter().GetResult().DeletedCount;
- is related to
-
SERVER-30232 delete command on mongos can return a negative count of deleted documents
-
- Backlog
-