[SERVER-4829] Compact command needs to update datasize Created: 31/Jan/12 Updated: 11/Jul/16 Resolved: 08/Feb/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mathias Stearn | Assignee: | Eric Milkie |
| Resolution: | Done | Votes: | 1 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
Attached patch is one way to do this. Could also just keep track of total size and update at end. That would be less crash safe, but would ensure correctness if the field is currently off due to prior compacts. |
| Comments |
| Comment by auto [ 08/Feb/12 ] |
|
Author: {u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: This code zeroes out the counters at the start of compaction and |
| Comment by auto [ 07/Feb/12 ] |
|
Author: {u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: Revert " This reverts commit 712c4f888b39ac71f66b452685638acfb3b55665. |
| Comment by auto [ 06/Feb/12 ] |
|
Author: {u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}Message: |