fix(release): 收紧分发热路径与事务边界
bat-rust / Build and test Rust (push) Canceled after 0s
bat-rust / Build and test Go API (push) Canceled after 0s

This commit is contained in:
2026-09-12 22:22:11 +08:00
parent f2c20367a6
commit 786b739f99
17 changed files with 835 additions and 124 deletions
+2 -2
View File
@@ -33,14 +33,14 @@ impl FileSystemCasRepository {
/// Releases one release-owned CAS reference exactly once.
pub async fn release_reference_once(
&self,
release_id: &str,
ownership_id: &str,
ordinal: u64,
id: &ObjectId,
) -> bat_core::Result<bool> {
let hash = Self::parse_object_id(id)?;
self.engine()
.await?
.release_reference_once(release_id, ordinal, &hash)
.release_reference_once(ownership_id, ordinal, &hash)
.await
.map_err(Self::map_error)
}