summaryrefslogtreecommitdiff
path: root/src/mongo/db/cloner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/cloner.cpp')
-rw-r--r--src/mongo/db/cloner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp
index fbba5e00365..7ea8669ec4f 100644
--- a/src/mongo/db/cloner.cpp
+++ b/src/mongo/db/cloner.cpp
@@ -251,7 +251,7 @@ struct Cloner::Fun {
str::stream ss;
ss << "Cloner: found corrupt document in " << from_collection.toString() << ": "
<< redact(status);
- if (skipCorruptDocumentsWhenCloning) {
+ if (skipCorruptDocumentsWhenCloning.load()) {
warning() << ss.ss.str() << "; skipping";
continue;
}