Skip to content

Commit

Permalink
Merge pull request #1023 from jiangliu/trim-blob-id
Browse files Browse the repository at this point in the history
storage: trim `\0` at the tail of blob id
  • Loading branch information
imeoer authored Jan 20, 2023
2 parents 953b965 + 4aa74c5 commit 6b90aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ impl BlobInfo {
chunk_count: u32,
blob_features: BlobFeatures,
) -> Self {
let blob_id = blob_id.trim_end_matches('\0').to_string();
let mut blob_info = BlobInfo {
blob_index,
blob_id,
Expand Down

0 comments on commit 6b90aa5

Please sign in to comment.