Skip to content

Commit

Permalink
feat: improve snapshot isolation (#146)
Browse files Browse the repository at this point in the history
Co-authored-by: Sergii Glushchenko <[email protected]>
  • Loading branch information
arriqaaq and gsserge authored Dec 6, 2024
1 parent 1ed1d26 commit baad827
Show file tree
Hide file tree
Showing 5 changed files with 343 additions and 485 deletions.
123 changes: 62 additions & 61 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/storage/kv/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pub enum Error {
KeyNotFound, // The key was not found
CorruptedIndex, // The index is corrupted
TransactionReadConflict, // A read conflict occurred in the transaction
TransactionWriteConflict, // A write conflict occurred in the transaction
StoreClosed, // The store was closed
InvalidAttributeData, // The attribute data is invalid
UnknownAttributeType, // The attribute type is unknown
Expand Down Expand Up @@ -66,6 +67,7 @@ impl fmt::Display for Error {
Error::KeyNotFound => write!(f, "Key not found"),
Error::CorruptedIndex => write!(f, "Corrupted index"),
Error::TransactionReadConflict => write!(f, "Transaction read conflict"),
Error::TransactionWriteConflict => write!(f, "Transaction write conflict"),
Error::StoreClosed => write!(f, "Store closed"),
Error::InvalidAttributeData => write!(f, "Invalid attribute data"),
Error::UnknownAttributeType => write!(f, "Unknown attribute type"),
Expand Down
Loading

0 comments on commit baad827

Please sign in to comment.