Purge a deleted object's leftovers through the runtime's delete
The runtime's objects delete already purges an object's chunks, and purges them again when asked again: Purge and purgeObject ask it, and no act of their own is added. Builds: design 47 H2 §812; H-A-366 (correction)
This commit is contained in:
+2
-2
@@ -170,11 +170,11 @@ export async function takeOnce(seat: string, ask: string, boundMs: number, state
|
||||
|
||||
/**
|
||||
* Remove what the deleted object `name` left behind in the object store `objects` (by its local name), its chunks,
|
||||
* through the runtime's `mesh/objects.purge` (H-A-366): the Go side's `busstate.Objects.Purge`. A bundle never opens a
|
||||
* through the runtime's `mesh/objects.delete`, which purges them again when asked again (H-A-366): the Go side's `busstate.Objects.Purge`. A bundle never opens a
|
||||
* connection of its own for it.
|
||||
*/
|
||||
export async function purgeObject(objects: string, name: string): Promise<void> {
|
||||
await boundChannel().ask("mesh/objects.purge", { objects, name });
|
||||
await boundChannel().ask("mesh/objects.delete", { objects, name });
|
||||
}
|
||||
|
||||
/** A state this module keeps (by its local name) or reads (`<module>.<name>`). */
|
||||
|
||||
Reference in New Issue
Block a user