diff options
Diffstat (limited to 'src/mongo/db/operation_context_noop.h')
-rw-r--r-- | src/mongo/db/operation_context_noop.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/operation_context_noop.h b/src/mongo/db/operation_context_noop.h index 0a24af2fdd6..0b2650531ce 100644 --- a/src/mongo/db/operation_context_noop.h +++ b/src/mongo/db/operation_context_noop.h @@ -103,6 +103,12 @@ namespace mongo { return 0; } + void setReplicatedWrites(bool writesAreReplicated = true) {} + + bool writesAreReplicated() const { + return false; + } + private: std::auto_ptr<RecoveryUnit> _recoveryUnit; boost::scoped_ptr<Locker> _locker; |