Skip to content

Commit

Permalink
fix(legacy prefix detection): calculate range end for legacy prefix i…
Browse files Browse the repository at this point in the history
…nstead of empty

Signed-off-by: Abhinandan Purkait <purkaitabhinandan@gmail.com>
  • Loading branch information
Abhinandan-Purkait committed Feb 26, 2024
1 parent 550e4df commit 528a02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/pstor/src/products/v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ pub fn key_prefix_obj<K: AsRef<str>>(key_type: K) -> String {

/// Fetches the product v1 key prefix and returns true if entry is present.
pub async fn detect_product_v1_prefix<S: Store>(store: &mut S) -> Result<bool, crate::Error> {
let prefix = store.get_values_paged(&key_prefix(), 3, "").await?;
let prefix = store.get_values_paged_all(&key_prefix(), 3).await?;
Ok(!prefix.is_empty())
}

0 comments on commit 528a02f

Please sign in to comment.