Restore truncated overflow-page comment dropped by the finish diff (#158)

This commit is contained in:
2026-08-22 17:13:33 +07:00
parent 948ecae2cc
commit 410509097a
+2
View File
@@ -570,6 +570,8 @@ func (h *Handler) seriesListView(r *http.Request) (seriesListView, error) {
if err != nil { if err != nil {
return seriesListView{}, err return seriesListView{}, err
} }
// A page past the end is not an empty list: the store's window count runs
// over the rows the result set carries, so an overflow page reports zero
// rows and zero total, and the list re-reads at page 1 to know the truth. // rows and zero total, and the list re-reads at page 1 to know the truth.
if len(data.Rows) == 0 && page > 1 { if len(data.Rows) == 0 && page > 1 {
page = 1 page = 1