From 96c5d840db4f4279cd9fc8ffe4bdfdc60fcd3984 Mon Sep 17 00:00:00 2001 From: Nathan Louie Date: Thu, 28 Jun 2018 11:48:18 -0400 Subject: SERVER-35157 Add transactions latency tracking to OperationLatencyHistogram --- src/mongo/db/commands.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/commands.h') diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index a767c8f60c8..966a0d640c7 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -370,12 +370,12 @@ public: } /** - * Returns whether this operation is a read, write, or command. + * Returns whether this operation is a read, write, command, or multi-document transaction. * * Commands which implement database read or write logic should override this to return kRead * or kWrite as appropriate. */ - enum class ReadWriteType { kCommand, kRead, kWrite }; + enum class ReadWriteType { kCommand, kRead, kWrite, kTransaction }; virtual ReadWriteType getReadWriteType() const { return ReadWriteType::kCommand; } -- cgit v1.2.1