Add shard log compaction boundary

This commit is contained in:
Meta Vens 2026-05-19 20:53:45 +01:00
commit 901e980ca6
9 changed files with 190 additions and 11 deletions

View file

@ -480,6 +480,16 @@ namespace GameCult.Networking
.ToArray();
}
/// <summary>
/// Gets the highest retained-log sequence that has been compacted away for a shard.
/// </summary>
public long GetCompactedMutationLogSequence(string shardId)
{
ThrowIfDisposed();
if (string.IsNullOrWhiteSpace(shardId)) throw new ArgumentException("Value must be non-empty.", nameof(shardId));
return _mutationLogStore?.GetCompactedThrough(shardId) ?? 0;
}
/// <summary>
/// Gets the last replicated sequence applied for a shard.
/// </summary>