[SERVER-16030] Update sizeStorer data when collection validate is called Created: 07/Nov/14  Updated: 15/Jan/15  Resolved: 24/Dec/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 2.8.0-rc5

Type: Improvement Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Because storageSize and count can become inaccurate after an unclean shutdown, we should provide a way to update these values.

As collection validate already walks all the indexes and the collection records, we should verify that the sizeStorer record matches and update it to the real value (with a message) in the case that it validates successfully.



 Comments   
Comment by Githook User [ 24/Dec/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16030 update size storer during full validation
Branch: master
https://github.com/mongodb/mongo/commit/4304aa3ecef45c2d03649151e5be706c6e67161e

Comment by Githook User [ 24/Dec/14 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-16030 make RecordStore::validate non-const
Branch: master
https://github.com/mongodb/mongo/commit/67e4e21226149f91563f1f8c3c490b5306c60cf4

Generated at Thu Feb 08 03:39:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.