def snapshot.close

mylsm-lsm-store@0.6.0.1 · src/coordinator/ByteClient.bend:284

import mylsm-lsm-store@0.6.0.1/src/coordinator/ByteClient.bend as ByteClient
import Base
import mylsm-lsm-store@0.6.0.1/src/coordinator/Client.bend as Client
import mylsm-lsm-store@0.6.0.1/src/coordinator/Protocol.bend as Protocol

284# Releases an owner snapshot token after its final cursor has closed.
285def snapshot.close(
286  session: Client.Session,
287  snapshot_id: U32
288) -> IO(Client.Session & Result<&1, &1, Client.Error, Unit>):
289  do IO<Client.Session & Result<&1, &1, Client.Error, Unit>>:
290    pair : Client.Session & Result<&1, &1, Client.Error, Protocol.Response> <-
291      Client.session.call(session, 11, Protocol.snapshot.id.bytes(snapshot_id))
292    return write.result(pair)

Uses (13)

Used by (5)