From d99ee615af2d69c74aa105fe8fdf1c068c7ff3e6 Mon Sep 17 00:00:00 2001 From: Abhinandan Purkait Date: Mon, 26 Feb 2024 10:08:08 +0000 Subject: [PATCH] fix(legacy prefix detection): calculate range end for legacy prefix instead of empty Signed-off-by: Abhinandan Purkait --- utils/pstor/src/products/v1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/pstor/src/products/v1.rs b/utils/pstor/src/products/v1.rs index f3dda12e4..3b1b7ba42 100644 --- a/utils/pstor/src/products/v1.rs +++ b/utils/pstor/src/products/v1.rs @@ -23,6 +23,6 @@ pub fn key_prefix_obj>(key_type: K) -> String { /// Fetches the product v1 key prefix and returns true if entry is present. pub async fn detect_product_v1_prefix(store: &mut S) -> Result { - 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()) }