def flush

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

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

150# Flushes the owner's durable WAL state through the serialized session.
151def flush(
152  session: Client.Session
153) -> IO(Client.Session & Result<&1, &1, Client.Error, Unit>):
154  do IO<Client.Session & Result<&1, &1, Client.Error, Unit>>:
155    pair : Client.Session & Result<&1, &1, Client.Error, Protocol.Response> <-
156      Client.session.flush(session)
157    return write.result(pair)

Uses (11)

Used by (1)