Skip to content

Commit b96abb7

Browse files
committed
Merge branch 'master' into electra-support
2 parents ceae508 + 3ce6f4a commit b96abb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/coordinator/logger/dbwriter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (lh *logDBWriter) GetLogEntries(from, limit int) []*db.TaskLog {
180180
return dbEntries
181181
}
182182

183-
if dbEntries[len(dbEntries)-1].LogIndex >= bufEntries[0].LogIndex {
183+
if len(dbEntries) > 0 && dbEntries[len(dbEntries)-1].LogIndex >= bufEntries[0].LogIndex {
184184
// remove overlapping entries
185185
bufEntries = bufEntries[dbEntries[len(dbEntries)-1].LogIndex-bufEntries[0].LogIndex+1:]
186186
}

0 commit comments

Comments
 (0)