diff options
author | Alex Auvolat <alex@adnab.me> | 2023-05-16 18:37:49 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-05-16 19:46:57 +0200 |
commit | bb03805b582562ddec1ac5e8fdc3b31bad070731 (patch) | |
tree | dda230f71324a94351023184094f40060c4a51b9 /src/k2v-client/bin/k2v-cli.rs | |
parent | e4f955d672af99d1bf25e6a0bb038d116f8bca0c (diff) | |
download | garage-bb03805b582562ddec1ac5e8fdc3b31bad070731.tar.gz garage-bb03805b582562ddec1ac5e8fdc3b31bad070731.zip |
k2v-cli: fix sort_key being partition_key and specify which key
Diffstat (limited to 'src/k2v-client/bin/k2v-cli.rs')
-rw-r--r-- | src/k2v-client/bin/k2v-cli.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/k2v-client/bin/k2v-cli.rs b/src/k2v-client/bin/k2v-cli.rs index c8418e0d..5dad6106 100644 --- a/src/k2v-client/bin/k2v-cli.rs +++ b/src/k2v-client/bin/k2v-cli.rs @@ -277,7 +277,7 @@ struct BatchOutputKind { impl BatchOutputKind { fn display_human_output(&self, values: BTreeMap<String, CausalValue>) -> ! { for (key, values) in values { - println!("key: {}", key); + println!("sort_key: {}", key); let causality: String = values.causality.into(); println!("causality: {}", causality); for value in values.value { @@ -522,7 +522,7 @@ async fn main() -> Result<(), Error> { value .as_object_mut() .unwrap() - .insert("sort_key".to_owned(), k.into()); + .insert("partition_key".to_owned(), k.into()); value }) .collect::<Vec<_>>(); @@ -539,7 +539,7 @@ async fn main() -> Result<(), Error> { } let mut to_print = Vec::new(); - to_print.push(format!("key:\tentries\tconflicts\tvalues\tbytes")); + to_print.push(format!("partition_key\tentries\tconflicts\tvalues\tbytes")); for (k, v) in res.items { to_print.push(format!( "{}\t{}\t{}\t{}\t{}", |