Skip to content

Commit

Permalink
SERVER-19919 Remove the 250000 document limit for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
renctan committed Oct 19, 2017
1 parent 9e25cf2 commit 830fe9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,8 +627,7 @@ Status MigrationChunkClonerSourceLegacy::_storeCurrentLocs(OperationContext* opC
if (totalRecs > 0) {
avgRecSize = collection->dataSize(opCtx) / totalRecs;
maxRecsWhenFull = _args.getMaxChunkSizeBytes() / avgRecSize;
maxRecsWhenFull = std::min((unsigned long long)(kMaxObjectPerChunk + 1),
130 * maxRecsWhenFull / 100 /* slack */);
maxRecsWhenFull = 130 * maxRecsWhenFull / 100; // pad some slack
} else {
avgRecSize = 0;
maxRecsWhenFull = kMaxObjectPerChunk + 1;
Expand Down

0 comments on commit 830fe9d

Please sign in to comment.