We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Command
1 parent 845a5d0 commit e2db5d7Copy full SHA for e2db5d7
src/cmap/conn/command.rs
@@ -51,6 +51,8 @@ pub(crate) struct Command<T = Document> {
51
autocommit: Option<bool>,
52
53
read_concern: Option<ReadConcern>,
54
+
55
+ recovery_token: Option<Document>,
56
}
57
58
impl<T> Command<T> {
@@ -67,6 +69,7 @@ impl<T> Command<T> {
67
69
start_transaction: None,
68
70
autocommit: None,
71
read_concern: None,
72
+ recovery_token: None,
73
74
75
@@ -79,7 +82,7 @@ impl<T> Command<T> {
79
82
80
83
81
84
pub(crate) fn set_recovery_token(&mut self, recovery_token: &Document) {
- self.body.insert("recoveryToken", recovery_token);
85
+ self.recovery_token = Some(recovery_token.clone());
86
87
88
pub(crate) fn set_txn_number(&mut self, txn_number: i64) {
0 commit comments