diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-02-20 16:54:57 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-23 18:43:31 +0000 |
commit | e8f1d29de757d41f7d082d5ca1e667d1b8938741 (patch) | |
tree | 40a89fd7ef888cca91c413f4b5ecf981afcbdd99 /src/mongo/db/s/transaction_coordinator_structures.cpp | |
parent | 68dfffe822f1888f221b265dc7974e9f98ea383c (diff) | |
download | mongo-e8f1d29de757d41f7d082d5ca1e667d1b8938741.tar.gz |
SERVER-46156 Deprecate LogstreamBuilder and more manual log conversions
* Remove setPlainConsoleLogger()
* Update errorcodes linter to work with custom user defined log macros
rename src/mongo/embedded/{embedded_log_appender.h => embedded_log_backend.h} (61%)
Diffstat (limited to 'src/mongo/db/s/transaction_coordinator_structures.cpp')
-rw-r--r-- | src/mongo/db/s/transaction_coordinator_structures.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mongo/db/s/transaction_coordinator_structures.cpp b/src/mongo/db/s/transaction_coordinator_structures.cpp index 65e9a840f99..dd45fa789e6 100644 --- a/src/mongo/db/s/transaction_coordinator_structures.cpp +++ b/src/mongo/db/s/transaction_coordinator_structures.cpp @@ -64,14 +64,13 @@ StringData writeCommitDecisionEnumProperty(CommitDecision decision) { MONGO_UNREACHABLE; } -logger::LogstreamBuilder& operator<<(logger::LogstreamBuilder& stream, - const CommitDecision& decision) { - // clang-format off - switch (decision) { - case txn::CommitDecision::kCommit: return stream << "kCommit"; - case txn::CommitDecision::kAbort: return stream << "kAbort"; +StringData toString(PrepareVote prepareVote) { + switch (prepareVote) { + case txn::PrepareVote::kCommit: + return "kCommit"_sd; + case txn::PrepareVote::kAbort: + return "kAbort"_sd; }; - // clang-format on MONGO_UNREACHABLE; } |