Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
2.3
-
None
-
MongoDB 3.2.10, windows 10 64-bit (the same on centOS)
-
Fully Compatible
Description
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;
|
Attachments
Issue Links
- is related to
-
SERVER-30232 delete command on mongos can return a negative count of deleted documents
-
- Backlog
-