def compact

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

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

159# Compacts the owner's durable state through the serialized session.
160def compact(
161  session: Client.Session
162) -> IO(Client.Session & Result<&1, &1, Client.Error, Unit>):
163  do IO<Client.Session & Result<&1, &1, Client.Error, Unit>>:
164    pair : Client.Session & Result<&1, &1, Client.Error, Protocol.Response> <-
165      Client.session.compact(session)
166    return write.result(pair)

Uses (11)

Used by (1)