Skip to content

Commit

Permalink
Merge pull request #907 from spacejam/tyler_0.30
Browse files Browse the repository at this point in the history
0.30
  • Loading branch information
spacejam authored Dec 13, 2019
2 parents f539b11 + 2fea85b commit d8196dd
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 6 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Upcoming
# 0.30

* Migrated to a new serialization format
## Breaking Changes

* Migrated to a new storage format

## Bugfixes

* Fixed a bug where cache was not being evicted
* Fixed a bug with using transactions with compression

# 0.29.2

Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sled"
version = "0.29.2"
version = "0.30.0"
authors = ["Tyler Neely <[email protected]>"]
description = "a modern embedded database"
license = "MIT/Apache-2.0"
Expand All @@ -11,6 +11,7 @@ categories = ["database-implementations", "concurrency", "data-structures", "alg
documentation = "https://docs.rs/sled/"
readme = "README.md"
edition = "2018"
exclude = ["benchmarks", "examples", "bindings", "scripts"]

[profile.release]
debug = true
Expand Down
Binary file removed art/tree.jpg
Binary file not shown.
Binary file removed art/tree.png
Binary file not shown.
Binary file removed art/tree_face.jpg
Binary file not shown.
Binary file removed art/tree_face_anti-transphobia.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion src/pagecache/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl Log {

#[cfg(feature = "compression")]
{
if self.config.use_compression {
if self.config.use_compression && pid != BATCH_MANIFEST_PID {
use zstd::block::compress;

let _measure = Measure::new(&M.compress);
Expand Down
2 changes: 1 addition & 1 deletion src/pagecache/reservation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl<'a> Reservation<'a> {

self.buf[0] = MessageKind::BatchManifest.into();

let buf = u64_to_arr(u64::try_from(lsn).unwrap());
let buf = lsn_to_arr(lsn);

let dst = &mut self.buf[MSG_HEADER_LEN..];

Expand Down
5 changes: 4 additions & 1 deletion tests/test_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,10 @@ fn concurrent_tree_iter() -> Result<()> {
fn concurrent_tree_transactions() -> TransactionResult<()> {
common::setup_logger();

let config = Config::new().temporary(true).flush_every_ms(None);
let config = Config::new()
.temporary(true)
.flush_every_ms(None)
.use_compression(true);
let db = config.open().unwrap();

db.insert(b"k1", b"cats").unwrap();
Expand Down

0 comments on commit d8196dd

Please sign in to comment.