summaryrefslogtreecommitdiff
path: root/src/mongo/s/commands/cluster_command_test_fixture.h
diff options
context:
space:
mode:
authorEsha Maharishi <esha.maharishi@mongodb.com>2019-02-26 02:22:37 -0500
committerEsha Maharishi <esha.maharishi@mongodb.com>2019-03-13 19:10:21 -0400
commitcd44c20c13d2452c78d1131fdedebd3107ecffea (patch)
treed3ead92f0791203b61ec183ab56a86de511bacd4 /src/mongo/s/commands/cluster_command_test_fixture.h
parent537ba4469fb872027a59b26344de28e715684679 (diff)
downloadmongo-cd44c20c13d2452c78d1131fdedebd3107ecffea.tar.gz
SERVER-39875 Make router process readOnly field in responses to transaction statements
Diffstat (limited to 'src/mongo/s/commands/cluster_command_test_fixture.h')
-rw-r--r--src/mongo/s/commands/cluster_command_test_fixture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/commands/cluster_command_test_fixture.h b/src/mongo/s/commands/cluster_command_test_fixture.h
index 3db68d9fc54..97739c7ef18 100644
--- a/src/mongo/s/commands/cluster_command_test_fixture.h
+++ b/src/mongo/s/commands/cluster_command_test_fixture.h
@@ -97,6 +97,12 @@ protected:
void testSnapshotReadConcernWithAfterClusterTime(BSONObj targetedCmd,
BSONObj scatterGatherCmd = BSONObj());
+ /**
+ * Appends the metadata shards return on responses to transaction statements, such as the
+ * readOnly field.
+ */
+ void appendTxnResponseMetadata(BSONObjBuilder& bob);
+
private:
/**
* Makes a new command object from the one given by apppending read concern