forked from mongodb/mongo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SERVER-7289 add inexpensive tests to validate command
Checks added to the validate command: 1) The 'xprev' pointer in each extent in the extent list should point to the previous extent, or be null for the first extent 2) The 'lastExtent' pointer in NamespaceDetails should point to the last extent 3) If an exception is thrown while counting extents, identify the failing extent 4) If an exception is thrown while counting extents, report the count 5) If an exception is thrown while counting extents, the first extent should be validated and the check for 'xprev' in the first extent being null should be done 6) If an invalid signature is found in an extent, report the value found and identify the extent 7) The "self-pointer" 'myLoc' in an extent should be validated 8) The extent size should be compared with Extent::minSize(), not zero
- Loading branch information
Tad Marshall
committed
Oct 11, 2012
1 parent
a730aa3
commit 65d0821
Showing
3 changed files
with
105 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters