Skip to content

Commit

Permalink
update adr's refs
Browse files Browse the repository at this point in the history
  • Loading branch information
fominok committed Feb 17, 2025
1 parent fa68477 commit 5273c79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions adr/atomicity.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ user to decide what to do with it.
_Not to be confused with GroveDB batches!_

In general, if an operation fails, it doesn't necessarily mean that the entire transaction
should be aborted, unless previous operations were destructive. At least, this is not the
should be aborted, unless it came into an inconsisent state. At least, this is not the
desired behavior in GroveDB, as it is used in Dash Platform: a transaction should live
for the duration of a block, with operations happening seamlessly -- even those that
may fail.

As stated before, an operation that changes the state of GroveDB consists of many
As stated before, an operation that changes the state of GroveDB consists of many RocksDB
operations. However, we do not apply them directly to the provided transaction. Instead,
we aggregate them into a RocksDB batch, which is applied to the transaction all at once
at the end of the GroveDB operation. This approach allows for failure without aborting
Expand Down
2 changes: 1 addition & 1 deletion adr/bidirectional_references.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Meta:

### Propagation

Previous read: [[merk_cache]].
Previous read: [Merk cache](./merk_cache.md).

Deletion or an update of an element with backward references triggers a cascade hash
update or a deletion, both of which alter the state of affected subtrees, leading to
Expand Down
2 changes: 1 addition & 1 deletion adr/merk_cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

An easy to use answer to GroveDB's implementation challenges.

Previous read: [[atomicity]].
Previous read: [atomicity](./atomicity.md).

Mandatory operation batching and deferred application, which are used for all GroveDB
updates, separate the state into two perspectives: one is the current state reflected in
Expand Down

0 comments on commit 5273c79

Please sign in to comment.