diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-03-12 07:52:05 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-13 08:55:48 +0200 |
commit | 29e68de7973f2b294c50b7d33ef216a8f095b9f9 (patch) | |
tree | 4103f4c460d0db422b999b4f19097cd489b2a6ca /src/bin | |
parent | 5e79c4f9b3e5789d1d40c2144ba6c3b6a868dae7 (diff) | |
download | obnam2-29e68de7973f2b294c50b7d33ef216a8f095b9f9.tar.gz |
feat! rename metadata field "sha256" to "label"
The field still contains a cleartext SHa256 of the cleartext chunk
data, but this makes it clearer that it may contain other data.
This is a breaking change: the server API won't work with an old
client, and the new client won't work with an old server. To avoid the
breakage would require more effort than is warranted at this time,
given the very small number of users of Obnam. Sorry.
Sponsored-by: author
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/obnam-server.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/obnam-server.rs b/src/bin/obnam-server.rs index f06b7b5..0b80854 100644 --- a/src/bin/obnam-server.rs +++ b/src/bin/obnam-server.rs @@ -155,8 +155,8 @@ pub async fn search_chunks( } if key == "generation" && value == "true" { store.find_generations().expect("SQL lookup failed") - } else if key == "sha256" { - store.find_by_sha256(value).expect("SQL lookup failed") + } else if key == "label" { + store.find_by_label(value).expect("SQL lookup failed") } else { error!("unknown search key {:?}", key); return Ok(ChunkResult::BadRequest); |