check config.start key

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-09-11 04:10:33 +00:00
parent 20a3a7ded2
commit 43f74243e5

View file

@ -612,7 +612,7 @@ func (ts *traverseSetup) traverseState(ctx context.Context, counters *traverseCo
if ts.config != nil {
// Skip branches that are entirely before startKey
if limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 {
if ts.config.startKey != nil && limitKey != nil && bytes.Compare(limitKey, ts.config.startKey) <= 0 {
return nil
}