Skip to content

Commit b50bc52

Browse files
authored
Fix validation of extent index in journal file (#21400)
1 parent edb587b commit b50bc52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/database/engine/pagecache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ static NOT_INLINE_HOT size_t get_page_list_from_journal_v2(struct rrdengine_inst
575575
break;
576576

577577
// 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) {
579579
nd_log_limit_static_thread_var(erl, 60, 0);
580580
nd_log_limit(&erl, NDLS_DAEMON, NDLP_ERR,
581581
"DBENGINE: Invalid extent index in journalfile %u",

0 commit comments

Comments
 (0)