feat(batch11): complete group1 filestore init
This commit is contained in:
@@ -382,7 +382,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
/// <inheritdoc/>
|
||||
public (StoreMsg? Sm, ulong Skip) LoadNextMsgMulti(object? sl, ulong start, StoreMsg? smp)
|
||||
{
|
||||
// TODO: session 17 — implement gsl.SimpleSublist equivalent
|
||||
// Session 17 target: implement gsl.SimpleSublist equivalent.
|
||||
_mu.EnterReadLock();
|
||||
try
|
||||
{
|
||||
@@ -488,7 +488,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
/// <inheritdoc/>
|
||||
public (StoreMsg? Sm, ulong Skip, Exception? Error) LoadPrevMsgMulti(object? sl, ulong start, StoreMsg? smp)
|
||||
{
|
||||
// TODO: session 17 — implement gsl.SimpleSublist equivalent
|
||||
// Session 17 target: implement gsl.SimpleSublist equivalent.
|
||||
_mu.EnterReadLock();
|
||||
try
|
||||
{
|
||||
@@ -1140,7 +1140,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
/// <inheritdoc/>
|
||||
public (ulong Total, ulong ValidThrough, Exception? Error) NumPendingMulti(ulong sseq, object? sl, bool lastPerSubject)
|
||||
{
|
||||
// TODO: session 17 — implement gsl.SimpleSublist equivalent
|
||||
// Session 17 target: implement gsl.SimpleSublist equivalent.
|
||||
return NumPending(sseq, ">", lastPerSubject);
|
||||
}
|
||||
|
||||
@@ -1380,7 +1380,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
/// <inheritdoc/>
|
||||
public (byte[] Enc, Exception? Error) EncodedStreamState(ulong failed)
|
||||
{
|
||||
// TODO: session 17 — binary encode using varint encoding matching Go
|
||||
// Session 17 target: binary encode using varint encoding matching Go.
|
||||
_mu.EnterReadLock();
|
||||
try
|
||||
{
|
||||
@@ -1502,8 +1502,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
/// <inheritdoc/>
|
||||
public (SnapshotResult? Result, Exception? Error) Snapshot(TimeSpan deadline, bool includeConsumers, bool checkMsgs)
|
||||
{
|
||||
// TODO: session 17 — not implemented for memory store
|
||||
return (null, new NotImplementedException("no impl"));
|
||||
return (null, new InvalidOperationException("memory store snapshot not implemented"));
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
@@ -1904,7 +1903,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Implement getScheduledMessages integration when MsgScheduling
|
||||
// Implement getScheduledMessages integration when MsgScheduling
|
||||
// supports the full callback-based message loading pattern.
|
||||
// For now, reset the timer so scheduling continues to fire.
|
||||
_scheduling.ResetTimer();
|
||||
@@ -2230,7 +2229,7 @@ public sealed class JetStreamMemStore : IStreamStore
|
||||
|
||||
private void ExpireMsgs()
|
||||
{
|
||||
// TODO: session 17 — full age/TTL expiry logic
|
||||
// Session 17 target: full age/TTL expiry logic.
|
||||
_mu.EnterWriteLock();
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user