aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-04-10 22:55:01 +0200
committerAlex Auvolat <alex@adnab.me>2020-04-10 22:55:01 +0200
commitff4fb9756810abeff17c360f3055c3865160b240 (patch)
tree8ce82a634149a5740b6875818c76f318fe09efe8
parenta50f07dfdc5b8b60deb79e0724ee140f122228b0 (diff)
downloadgarage-ff4fb9756810abeff17c360f3055c3865160b240.tar.gz
garage-ff4fb9756810abeff17c360f3055c3865160b240.zip
(Try to) disable LTO ?
-rw-r--r--Cargo.toml3
-rw-r--r--src/table.rs5
2 files changed, 8 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index a8505cbc..5a0d9ec4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,3 +29,6 @@ sha2 = "0.8"
async-trait = "0.1.30"
reduce = "0.1.2"
serde_json = "1.0"
+
+[profile.dev]
+lto = "off"
diff --git a/src/table.rs b/src/table.rs
index 9ba9d94a..36c279e8 100644
--- a/src/table.rs
+++ b/src/table.rs
@@ -104,6 +104,11 @@ impl PartitionKey for Hash {
self.clone()
}
}
+impl SortKey for Hash {
+ fn sort_key(&self) -> &[u8] {
+ self.as_slice()
+ }
+}
#[async_trait]
pub trait TableFormat: Send + Sync {