zhangstar333 commented on code in PR #68813:
URL: https://github.com/apache/doris/pull/68813#discussion_r4227721919


##########
thirdparty/patches/lance-c-foyer.patch:
##########
@@ -547,32 +6861,9 @@ index 
0000000000000000000000000000000000000000..cfc47f1528d11b6be068c09dd4703ff4
 +use crate::runtime::block_on;
 +use crate::session::{LanceSession, session_new_with_data_cache_factory};
 +
-+const CACHE_KEY_VERSION: &str = "lance-data-v2";
++const CACHE_KEY_VERSION: &str = "lance-data-v1";
 +const FOYER_PAGE_SIZE: usize = 4096;
 +
-+struct OriginNamespace {
-+    origin: Weak<dyn ObjectStore>,
-+    namespace: uuid::Uuid,
-+}
-+
-+static ORIGIN_NAMESPACES: LazyLock<Mutex<HashMap<usize, OriginNamespace>>> =
-+    LazyLock::new(|| Mutex::new(HashMap::new()));
-+
-+fn origin_namespace(origin: &Arc<dyn ObjectStore>) -> uuid::Uuid {
-+    // store_prefix omits endpoint/credentials, and this interface exposes no 
stable
-+    // backend identity. Only the same live origin may reuse metadata or data.
-+    // Persist a random namespace, never an address that another process can 
reuse.
-+    let mut namespaces = ORIGIN_NAMESPACES.lock().unwrap();
-+    namespaces.retain(|_, entry| entry.origin.strong_count() != 0);
-+    namespaces
-+        .entry(Arc::as_ptr(origin) as *const () as usize)
-+        .or_insert_with(|| OriginNamespace {
-+            origin: Arc::downgrade(origin),
-+            namespace: uuid::Uuid::new_v4(),
-+        })
-+        .namespace
-+}
-+
 +/// Configuration for the optional Foyer data-file cache.
 +#[repr(C)]

Review Comment:
   no



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to