[SERVER-3817] Increment opcounters for bulk insert Created: 12/Sep/11 Updated: 11/Jul/16 Resolved: 12/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.0.0 |
| Fix Version/s: | 2.0.3, 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Currently we only increment opcounters for bulk insert if one of the inserts fails In [8]: db.command('serverStatus')['opcounters']['insert'] In [9]: db.foo.insert([{}]) In [10]: db.command('serverStatus')['opcounters']['insert'] In [11]: db.foo.insert([{},{}]) In [12]: db.command('serverStatus')['opcounters']['insert'] In [14]: db.foo.insert([ {'_id':1}, {'_id':1}, {'_id':1}]) In [15]: db.command('serverStatus')['opcounters']['insert'] |
| Comments |
| Comment by auto [ 20/Feb/12 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Correctly count bulk inserts in opcounters |
| Comment by auto [ 12/Sep/11 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Correctly count bulk inserts in opcounters |