From 597fae4ed3c66e359e9ea467a95ee0042369d46e Mon Sep 17 00:00:00 2001 From: Bo Lu Date: Sun, 7 Jul 2024 14:07:58 +1000 Subject: [PATCH] fix: add url to local cache file hash --- wrappers/src/fdw/wasm_fdw/wasm_fdw.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wrappers/src/fdw/wasm_fdw/wasm_fdw.rs b/wrappers/src/fdw/wasm_fdw/wasm_fdw.rs index 07ab9b9f..969c9399 100644 --- a/wrappers/src/fdw/wasm_fdw/wasm_fdw.rs +++ b/wrappers/src/fdw/wasm_fdw/wasm_fdw.rs @@ -75,8 +75,9 @@ fn download_component( // calculate file name hash and make up cache path let hash = Sha256::digest(format!( - "{}:{}@{}", + "{}:{}:{}@{}", unsafe { pg_sys::GetUserId().as_u32() }, + url, name, version ));