SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
vector: Lease::forget hands the tag name off without releasing (#12174)
Chris Lu8daa1b6dddd6
diff --git a/seaweed-vector/crates/core/src/maintenance.rs b/seaweed-vector/crates/core/src/maintenance.rsindex 0391fd3fc5..4eee54e03e 100644--- a/seaweed-vector/crates/core/src/maintenance.rs+++ b/seaweed-vector/crates/core/src/maintenance.rs@@ -45,6 +45,16 @@ impl Lease {untrack(&tag);release(&self.dataset, &tag).await}++ /// Hand the tag name off and skip the drop-time release — a distributed+ /// planner keeps the version pinned until an executor takes over. The+ /// tag leaves LIVE_TAGS so an abandoned handoff still expires at the+ /// lease TTL instead of surviving forever locally.+ pub fn forget(mut self) -> String {+ let tag = std::mem::take(&mut self.tag);+ untrack(&tag);+ tag+ }}impl Drop for Lease {