diff options
author | Antonin Kral <a.kral@bobek.cz> | 2012-06-05 19:50:36 +0200 |
---|---|---|
committer | Antonin Kral <a.kral@bobek.cz> | 2012-06-05 19:50:36 +0200 |
commit | 291c9687fb2307dc22d1f269eb4d0aa98fe8cadc (patch) | |
tree | f46fac7bf8530d100aa55da89dfaa53490fbb350 /db/compact.cpp | |
parent | 6d0f215499dda50fdba4a6f60ab359efe0054e0d (diff) | |
parent | 3703a282eca7e79e91f4bd651b1b861b76dc6c68 (diff) | |
download | mongodb-291c9687fb2307dc22d1f269eb4d0aa98fe8cadc.tar.gz |
Merge tag 'upstream/2.0.6'
Upstream version 2.0.6
Diffstat (limited to 'db/compact.cpp')
-rw-r--r-- | db/compact.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/compact.cpp b/db/compact.cpp index c6e5f77..c100006 100644 --- a/db/compact.cpp +++ b/db/compact.cpp @@ -180,6 +180,11 @@ namespace mongo { d->deletedList[i].writing().Null(); } + + + // Start over from scratch with our extent sizing and growth + d->lastExtentSize=0; + // before dropping indexes, at least make sure we can allocate one extent! uassert(14025, "compact error no space available to allocate", !allocateSpaceForANewRecord(ns, d, Record::HeaderSize+1, false).isNull()); |