summaryrefslogtreecommitdiff
path: root/ext/kv/interface.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kv/interface.rs')
-rw-r--r--ext/kv/interface.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/kv/interface.rs b/ext/kv/interface.rs
index 6e520b9c5..31b7638b4 100644
--- a/ext/kv/interface.rs
+++ b/ext/kv/interface.rs
@@ -31,7 +31,10 @@ pub trait Database {
options: SnapshotReadOptions,
) -> Result<Vec<ReadRangeOutput>, AnyError>;
- async fn atomic_write(&self, write: AtomicWrite) -> Result<bool, AnyError>;
+ async fn atomic_write(
+ &self,
+ write: AtomicWrite,
+ ) -> Result<Option<CommitResult>, AnyError>;
}
/// Options for a snapshot read.
@@ -304,3 +307,9 @@ impl MutationKind {
}
}
}
+
+/// The result of a successful commit of an atomic write operation.
+pub struct CommitResult {
+ /// The new versionstamp of the data that was committed.
+ pub versionstamp: Versionstamp,
+}