-
-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #769 from spacejam/tyler_0.26
cut 0.26
- Loading branch information
Showing
6 changed files
with
115 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 0.26 | ||
|
||
## New Features | ||
|
||
* Transactions! You may now call `Tree::transaction` and | ||
perform reads, writes, and deletes within a provided | ||
closure with a `TransactionalTree` argument. This | ||
closure may be called multiple times if the transaction | ||
encounters a concurrent update in the process of its | ||
execution. Transactions may also be used on tuples of | ||
`Tree` objects, where the closure will then be | ||
parameterized on `TransactionalTree` instances providing | ||
access to each of the provided `Tree` instances. This | ||
allows you to atomically read and modify multiple | ||
`Tree` instances in a single atomic operation. | ||
These transactions are serializable, fully ACID, | ||
and optimistic. | ||
* `Tree::apply_batch` allows you to apply a `Batch` | ||
* `TransactionalTree::apply_batch` allow you to | ||
apply a `Batch` from within a transaction. | ||
|
||
## Breaking Changes | ||
|
||
* `Tree::batch` has been removed. Now you can directly | ||
create a `Batch` with `Batch::default()` and then apply | ||
it to a `Tree` with `Tree::apply_batch` or during a | ||
transaction using `TransactionalTree::apply_batch`. | ||
This facilitates multi-`Tree` batches via transactions. | ||
* `Event::Merge` has been removed, and `Tree::merge` will | ||
now send a complete `Event::Set` item to be distributed | ||
to all listening subscribers. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "pagecache" | ||
version = "0.18.0" | ||
version = "0.19.0" | ||
authors = ["Tyler Neely <[email protected]>"] | ||
description = "lock-free pagecache and log for high-performance databases" | ||
license = "MIT/Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "sled" | ||
version = "0.25.0" | ||
version = "0.26.0" | ||
authors = ["Tyler Neely <[email protected]>"] | ||
description = "a modern embedded database" | ||
license = "MIT/Apache-2.0" | ||
|
@@ -25,7 +25,7 @@ measure_allocs = ["pagecache/measure_allocs"] | |
check_snapshot_integrity = ["pagecache/check_snapshot_integrity"] | ||
|
||
[dependencies] | ||
pagecache = { path = "../pagecache", version = "0.18" } | ||
pagecache = { path = "../pagecache", version = "0.19" } | ||
serde_bytes = "0.11" | ||
parking_lot = "0.9.0" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters