spec/spec_tests/data/transactions/causal-consistency.yml in mongo-2.9.2 vs spec/spec_tests/data/transactions/causal-consistency.yml in mongo-2.10.0.rc0
- old
+ new
@@ -1,9 +1,12 @@
runOn:
-
minServerVersion: "4.0"
topology: ["replicaset"]
+ -
+ minServerVersion: "4.1.8"
+ topology: ["sharded"]
database_name: &database_name "transaction-tests"
collection_name: &collection_name "test"
data:
@@ -22,11 +25,10 @@
arguments:
session: session0
filter: {_id: 1}
update:
$inc: {count: 1}
- upsert: false
result:
matchedCount: 1
modifiedCount: 1
upsertedCount: 0
# Updating the same document inside a transaction.
@@ -43,12 +45,10 @@
command:
update: *collection_name
updates:
- q: {_id: 1}
u: {$inc: {count: 1}}
- multi: false
- upsert: false
ordered: true
lsid: session0
readConcern:
txnNumber:
startTransaction:
@@ -60,12 +60,10 @@
command:
update: *collection_name
updates:
- q: {_id: 1}
u: {$inc: {count: 1}}
- multi: false
- upsert: false
ordered: true
readConcern:
afterClusterTime: 42
lsid: session0
txnNumber:
@@ -117,11 +115,10 @@
arguments:
session: session0
filter: {_id: 1}
update:
$inc: {count: 1}
- upsert: false
result:
matchedCount: 1
modifiedCount: 1
upsertedCount: 0
- name: commitTransaction
@@ -145,11 +142,9 @@
command:
update: *collection_name
updates:
- q: {_id: 1}
u: {$inc: {count: 1}}
- multi: false
- upsert: false
ordered: true
# No afterClusterTime
readConcern:
lsid: session0
txnNumber: