fix validation for looped capped collections

This commit is contained in:
Aaron
2010-03-15 23:18:24 -07:00
parent 807aa4d121
commit 8f28569fa0

View File

@@ -181,7 +181,7 @@ namespace mongo {
nlen += r->netLength();
c->advance();
}
if ( d->capped ) {
if ( d->capped && !d->capLooped() ) {
ss << " capped outOfOrder:" << outOfOrder;
if ( outOfOrder > 1 ) {
valid = false;