Skip to content

Commit 69294e5

Browse files
authored
Merge pull request #1426 from spacejam/tyler_simplify_before_rewrite
Remove zstd in anticipation for it being re-added through marble
2 parents 96b2170 + b19e34d commit 69294e5

23 files changed

+65
-176
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
default.sled
2+
crash_*
23
*db
34
*conf
45
*snap.*

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ default = []
3131
# test-only configurations that cause performance to drop significantly.
3232
# It will cause your tests to take much more time, and possibly time out etc...
3333
testing = ["event_log", "lock_free_delays", "light_testing"]
34-
light_testing = ["compression", "failpoints", "backtrace", "memshred"]
35-
compression = ["zstd"]
34+
light_testing = ["failpoints", "backtrace", "memshred"]
3635
lock_free_delays = []
3736
failpoints = []
3837
event_log = []
@@ -41,20 +40,20 @@ no_logs = ["log/max_level_off"]
4140
no_inline = []
4241
pretty_backtrace = ["color-backtrace"]
4342
docs = []
43+
no_zstd = []
4444
miri_optimizations = []
4545
mutex = []
4646
memshred = []
4747

4848
[dependencies]
4949
libc = "0.2.96"
50-
zstd = { version = "0.11.2", optional = true }
5150
crc32fast = "1.2.1"
5251
log = "0.4.14"
53-
parking_lot = "0.12.0"
52+
parking_lot = "0.12.1"
5453
color-backtrace = { version = "0.5.1", optional = true }
5554
num-format = { version = "0.4.0", optional = true }
5655
backtrace = { version = "0.3.60", optional = true }
57-
im = "15.0.0"
56+
im = "15.1.0"
5857

5958
[target.'cfg(any(target_os = "linux", target_os = "macos", target_os="windows"))'.dependencies]
6059
fs2 = "0.4.3"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ extreme::run(async move {
161161

162162
# minimum supported Rust version (MSRV)
163163

164-
We support Rust 1.57.0 and up.
164+
We support Rust 1.62 and up.
165165

166166
# architecture
167167

benchmarks/stress2/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ overflow-checks = true
1616
default = []
1717
lock_free_delays = ["sled/lock_free_delays"]
1818
event_log = ["sled/event_log"]
19-
compression = ["sled/compression"]
2019
no_logs = ["sled/no_logs"]
2120
metrics = ["sled/metrics"]
2221
jemalloc = ["jemallocator"]

scripts/cross_compile.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ rustup update --no-self-update
1212

1313
RUSTFLAGS="--cfg miri" cargo check
1414

15-
rustup toolchain install 1.57.0 --no-self-update
15+
rustup toolchain install 1.62 --no-self-update
1616
cargo clean
1717
rm Cargo.lock
18-
cargo +1.57.0 check
18+
cargo +1.62 check
1919

2020
for target in $targets; do
2121
echo "setting up $target..."

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,8 @@ impl Config {
481481
);
482482
if self.use_compression {
483483
supported!(
484-
cfg!(feature = "compression"),
485-
"the 'compression' feature must be enabled"
484+
!cfg!(feature = "no_zstd"),
485+
"the 'no_zstd' feature is set, but Config.use_compression is also set to true"
486486
);
487487
}
488488
supported!(

src/doc/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
//! * forward and reverse iterators
1010
//! * a monotonic ID generator capable of giving out 75-125+ million unique IDs
1111
//! per second, never double allocating even in the presence of crashes
12-
//! * [zstd](https://github.com/facebook/zstd) compression (use the zstd build
13-
//! feature)
12+
//! * [zstd](https://github.com/facebook/zstd) compression
1413
//! * cpu-scalable lock-free implementation
1514
//! * SSD-optimized log-structured storage
1615
//!

src/ebr/atomic.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ impl CompareAndSetOrdering for (Ordering, Ordering) {
9090

9191
/// Returns a bitmask containing the unused least significant bits of an aligned pointer to `T`.
9292
#[inline]
93-
fn low_bits<T: ?Sized + Pointable>() -> usize {
93+
const fn low_bits<T: ?Sized + Pointable>() -> usize {
9494
(1 << T::ALIGN.trailing_zeros()) - 1
9595
}
9696

@@ -720,7 +720,7 @@ impl<'g, T> Shared<'g, T> {
720720

721721
impl<'g, T: ?Sized + Pointable> Shared<'g, T> {
722722
/// Returns a new null pointer.
723-
pub(crate) fn null() -> Shared<'g, T> {
723+
pub(crate) const fn null() -> Shared<'g, T> {
724724
Shared { data: 0, _marker: PhantomData }
725725
}
726726

src/ebr/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ impl Global {
288288

289289
for _ in 0..steps {
290290
match self.queue.try_pop_if(
291-
&|sealed_bag: &SealedBag| sealed_bag.is_expired(global_epoch),
291+
|sealed_bag: &SealedBag| sealed_bag.is_expired(global_epoch),
292292
guard,
293293
) {
294294
None => break,

src/histogram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ fn multithreaded() {
255255
}));
256256
}
257257

258-
for t in threads.into_iter() {
258+
for t in threads {
259259
t.join().unwrap();
260260
}
261261

0 commit comments

Comments
 (0)