Fix validation of extent index in journal file (#21400)
Stelios Fragkakis committed
Dec 4, 2025 at 19:22 UTC
b50bc52296980dbcedbc590bd08f2ea53b6d30ba
1 file changed
+1
-1
src/database/engine/pagecache.c
+1
-1
@@ -575,7 +575,7 @@ static NOT_INLINE_HOT size_t get_page_list_from_journal_v2(struct rrdengine_inst
575
break;
576
577
// Make sure index is valid for this file
578
- if (page_entry_in_journal->extent_index > extent_entries) {
578
+ if (page_entry_in_journal->extent_index >= extent_entries) {
579
nd_log_limit_static_thread_var(erl, 60, 0);
580
nd_log_limit(&erl, NDLS_DAEMON, NDLP_ERR,
581
"DBENGINE: Invalid extent index in journalfile %u",