MCPcopy Create free account
hub / github.com/cosdata/cosdata / implicit_txn_delete

Method implicit_txn_delete

src/models/indexing_manager.rs:293–303  ·  view source on GitHub ↗
(
        collection: &Collection,
        transaction: &ImplicitTransaction,
        config: &Config,
        vector_id: VectorId,
    )

Source from the content-addressed store, hash-verified

291 }
292
293 pub fn implicit_txn_delete(
294 collection: &Collection,
295 transaction: &ImplicitTransaction,
296 config: &Config,
297 vector_id: VectorId,
298 ) -> Result<(), WaCustomError> {
299 let version = transaction.version(collection)?;
300 transaction.append_to_wal(collection, VectorOp::Delete(vector_id.clone()))?;
301 collection.delete_embedding(vector_id, version, config)?;
302 Ok(())
303 }
304}
305
306impl Drop for IndexingManager {

Callers

nothing calls this directly

Calls 4

versionMethod · 0.80
append_to_walMethod · 0.80
cloneMethod · 0.80
delete_embeddingMethod · 0.45

Tested by

no test coverage detected