diff options
author | Pavi Vetriselvan <pvselvan@umich.edu> | 2018-07-23 14:25:06 -0400 |
---|---|---|
committer | Pavi Vetriselvan <pvselvan@umich.edu> | 2018-07-23 14:26:17 -0400 |
commit | f3477a93f2bae0a69bf12b1a28a428196906e0d4 (patch) | |
tree | dd304dfc4e032bad23dcbc74aac5809a85d35a37 /src/mongo/db/session.h | |
parent | 82270c960534faaff9daf82a4ff34062f7bce6aa (diff) | |
download | mongo-f3477a93f2bae0a69bf12b1a28a428196906e0d4.tar.gz |
SERVER-35378 make prepareTransaction command return the prepareTimestamp
Diffstat (limited to 'src/mongo/db/session.h')
-rw-r--r-- | src/mongo/db/session.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/session.h b/src/mongo/db/session.h index c9546269b83..51c4ad71370 100644 --- a/src/mongo/db/session.h +++ b/src/mongo/db/session.h @@ -281,9 +281,9 @@ public: void commitTransaction(OperationContext* opCtx, boost::optional<Timestamp> commitTimestamp); /** - * Puts a transaction into a prepared state. + * Puts a transaction into a prepared state and returns the prepareTimestamp. */ - void prepareTransaction(OperationContext* opCtx); + Timestamp prepareTransaction(OperationContext* opCtx); /** * Aborts the transaction outside the transaction, releasing transaction resources. |