surrealdb / surrealkv

A low-level, versioned, embedded, ACID-compliant, key-value database for Rust
https://surrealdb.com
Apache License 2.0
306 stars 19 forks source link

chore: add test for concurrent inserts #110

Closed arriqaaq closed 3 weeks ago

arriqaaq commented 3 weeks ago

Description

This PR adds the following:

1) Adds check if the snapshot is not lesser than index version 2) Modifies Transaction::commit to return (tx_id, commit_ts) for verification 3) Add basic test to verify if concurrent transactions committed have incremental txn ids

Addresses https://github.com/surrealdb/surrealkv/issues/108