diff options
author | Mathias Stearn <mathias@10gen.com> | 2017-12-11 13:22:00 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2018-01-04 14:52:27 -0500 |
commit | fdc48462ba15f6923df7b2be48a8176810ac17a4 (patch) | |
tree | b57d140372bbe67f3357e98f068fa7ae23e4ff15 /src/mongo/db/repl/master_slave.h | |
parent | 4abae20d3bc9c942664fca6364bea51ae533e644 (diff) | |
download | mongo-fdc48462ba15f6923df7b2be48a8176810ac17a4.tar.gz |
SERVER-31734 eliminate non-Status DBException constructor
Diffstat (limited to 'src/mongo/db/repl/master_slave.h')
-rw-r--r-- | src/mongo/db/repl/master_slave.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/master_slave.h b/src/mongo/db/repl/master_slave.h index cc7f9cce13a..84c41df95ba 100644 --- a/src/mongo/db/repl/master_slave.h +++ b/src/mongo/db/repl/master_slave.h @@ -61,7 +61,7 @@ extern const char* replInfo; /* A replication exception */ class SyncException final : public DBException { public: - SyncException() : DBException(10001, "sync exception") {} + SyncException() : DBException(Status(ErrorCodes::Error(10001), "sync exception")) {} private: void defineOnlyInFinalSubclassToPreventSlicing() final {} |