fix: file sharing of wal

This commit is contained in:
xuu
2022-08-11 03:18:04 +00:00
parent 50b44a7bb7
commit 23639bc306
3 changed files with 26 additions and 9 deletions

View File

@@ -3,6 +3,7 @@ package diskstore
import (
"context"
"fmt"
"log"
"os"
"path/filepath"
"strings"
@@ -115,6 +116,7 @@ func (es *eventLog) Read(ctx context.Context, pos, count int64) (event.Events, e
}
start, count := math.PagerBox(first, last, pos, count)
log.Println("reading", first, last, pos, count, start)
if count == 0 {
return nil
}