diff options
author | Randolph Tan <randolph@10gen.com> | 2014-07-15 16:48:59 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-07-16 13:41:37 -0400 |
commit | 2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e (patch) | |
tree | e74a56e3d3423d15565d739721f343fafa753798 /src/mongo/db/field_parser.cpp | |
parent | d134ba27aa7f2c4eb8fc4b1331c8331f5914bfc6 (diff) | |
download | mongo-2fd2eebb2656ae65bd6eb63b39f8faeb84e0db4e.tar.gz |
SERVER-14041 enhance secondaryThrottle parameter
This reverts commit 37f2a1e3b724dbd9e1f8eafd4ac87c5bf613c048 (undo revert).
This reverts commit d60fd22dec1c0bd104622eab463cdbba18bf11a9 (undo revert).
Fix Windows compile failure.
Add more defensive checks.
Diffstat (limited to 'src/mongo/db/field_parser.cpp')
-rw-r--r-- | src/mongo/db/field_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/field_parser.cpp b/src/mongo/db/field_parser.cpp index 40c8c9664eb..47b5b8cf1c0 100644 --- a/src/mongo/db/field_parser.cpp +++ b/src/mongo/db/field_parser.cpp @@ -111,7 +111,7 @@ namespace mongo { { if (elem.eoo()) { if (field.hasDefault()) { - *out = field.getDefault(); + *out = field.getDefault().getOwned(); return FIELD_DEFAULT; } else { |