summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context_noop.h
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-10-14 09:37:03 -0400
committerEliot Horowitz <eliot@10gen.com>2014-10-15 16:00:01 -0400
commit786945e1a1fea1eb0f7863879e87d264af7a4293 (patch)
treef9d4f6e09d05da8b077c7c554c7a2d662920ec22 /src/mongo/db/operation_context_noop.h
parenta2adff8b30574ed685443c164e35317418f5c8e4 (diff)
downloadmongo-786945e1a1fea1eb0f7863879e87d264af7a4293.tar.gz
SERVER-13635: hook up mmapv1 record stores to harness
Diffstat (limited to 'src/mongo/db/operation_context_noop.h')
-rw-r--r--src/mongo/db/operation_context_noop.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/operation_context_noop.h b/src/mongo/db/operation_context_noop.h
index d2ac6d47d77..347578c8cc7 100644
--- a/src/mongo/db/operation_context_noop.h
+++ b/src/mongo/db/operation_context_noop.h
@@ -78,8 +78,7 @@ namespace mongo {
const std::string &name,
unsigned long long progressMeterTotal,
int secondsBetween) {
- invariant(false);
- return NULL;
+ return &_pm;
}
virtual void checkForInterrupt(bool heedMutex = true) const { }
@@ -106,6 +105,7 @@ namespace mongo {
private:
std::auto_ptr<RecoveryUnit> _recoveryUnit;
+ ProgressMeter _pm;
};
} // namespace mongo