Skip to content

IDurableLogDraft<T>.Commit(ReadOnlySpan<T>)

Commit(ReadOnlySpan<T>)

abstract
public abstract long Commit(params ReadOnlySpan<T> entries)
Closes the draft and appends the durable entries which replace its items.

Parameters

entriesReadOnlySpan<T>
The entries, in order. Pass none to close the draft cleanly without appending entries.

Returns

The sequence number of the first entry. When entries is empty, the sequence number which the next appended entry receives.

Exceptions

System.InvalidOperationException
The draft is closed. The message states why.