Format native-only engine and update admission comments

This commit is contained in:
pingqiu committed 2026-11-20 00:29:38 -08:00
1 parent 7ef3d584f9
commit 75721fc6cd
4 files changed
+3 -10

No files matched your search

@@ -1,7 +1,6 @@
package storage
import (
"testing"
)
@@ -29,4 +28,3 @@ func TestChunkBirthSeededFrontierPreservesInheritedImage(t *testing.T) {
t.Fatalf("seeded image birth lost: %+v", cut.Head)
}
}
+1 -2
View File
@@ -149,7 +149,7 @@ func attachChunkLayerImpl(s *WALStore, remote chunkRemote, cfg chunkLayerConfig)
return nil, fmt.Errorf("%w: chunk layer requires the native owned map", ErrMapInvalid)
}
if remote == nil || cfg.ChunkBlocks == 0 {
return nil, errors.New("storage: chunk layer needs a remote, ChunkBlocks > 0 and a legacy bitmap unless the store owns an impl3 map")
return nil, errors.New("storage: chunk layer needs a remote and ChunkBlocks > 0")
}
var localBase bool
s.captureMu.Lock()
@@ -1401,7 +1401,6 @@ func (l *chunkLayerImpl) dropIntents(ctx context.Context, ids []string) {
// stage uploads large native dirty sets through logical reads, before fixing H.
// It stops when the spill-budget remainder is reached or a round makes no
// progress. Versions/HEAD generation bind every reusable immutable result.
// Legacy fixtures retain their bounded-count rounds.
func (l *chunkLayerImpl) stage(ctx context.Context, st *chunkCutStats) (map[uint64]stagedChunk, []string, error) {
bound := l.cfg.BarrierBound
@@ -9,7 +9,6 @@ package storage
// It may over-report, never under-report. RED until the layer exists.
import (
"testing"
)
@@ -33,4 +32,3 @@ func flushWithin(t *testing.T, s *WALStore, what string) error {
within(t, what, func() error { ferr = s.flusher.flushOnce(); return nil })
return ferr
}
+2 -4
View File
@@ -132,7 +132,7 @@ type WALStore struct {
instr writeInstrumentation
// v3 is non-nil for a format-v3 store (walstore_v3.go). Production
// selectors use v3; legacy formats require explicit offline migration.
// selectors use v3; legacy files are refused without mutation.
v3 *walStoreV3State
// Physical WAL sync attempts exclude the separate metadata/checkpoint syncs.
@@ -203,9 +203,7 @@ func OpenWALStoreWithOptions(path string, opts WALStoreOptions) (*WALStore, erro
return openWALStoreV3WithOptions(path, true, opts)
}
// openInitializedV3 is openInitializedWithMetadata with an optional
// init hook that runs before the committer and flusher goroutines start
// (the v3 store attaches its state there).
// openInitializedV3 binds native state before starting background workers.
func openInitializedV3(path string, f *os.File, sb *superblock, metadata BlockMetadata, init func(*WALStore) error) (*WALStore, error) {
dm := newDirtyMap(64) // 64 shards is plenty for Phase 07 demo workloads