diff options
author | Alberto Lerner <alerner@10gen.com> | 2013-06-03 18:59:02 -0400 |
---|---|---|
committer | Alberto Lerner <alerner@10gen.com> | 2013-06-04 10:50:19 -0400 |
commit | 9a7f88f0843a6d4d6c148b0ecee2cefb385584fb (patch) | |
tree | f8cfc9b430e39ab5cdf054139aaa06867b3f4b4d /src/mongo/db/ops/path_support.h | |
parent | 1d42a534e0eb1e9ac868c0234495c0333d57d7c1 (diff) | |
download | mongo-9a7f88f0843a6d4d6c148b0ecee2cefb385584fb.tar.gz |
SERVER-7176 Cap the amount of array backfilling in an update.
Diffstat (limited to 'src/mongo/db/ops/path_support.h')
-rw-r--r-- | src/mongo/db/ops/path_support.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/ops/path_support.h b/src/mongo/db/ops/path_support.h index 9c7f2c4df3f..13be08d0df8 100644 --- a/src/mongo/db/ops/path_support.h +++ b/src/mongo/db/ops/path_support.h @@ -27,6 +27,10 @@ namespace mongo { namespace pathsupport { + // Cap on the number of nulls we'll add to an array if we're inserting to an index that + // doesn't exist. + static const size_t kMaxPaddingAllowed = 1500000; + /** * Finds the longest portion of 'prefix' that exists in document rooted at 'root' and is * "viable." A viable path is one that, if fully created on a given doc, would not |