Skip to content

Commit

Permalink
[CBRD-25640] [Regression] restoredb hang when it try to restore to th…
Browse files Browse the repository at this point in the history
  • Loading branch information
hornetmj authored Nov 22, 2024
1 parent 2b1a584 commit 7f102a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transaction/log_recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,9 @@ log_is_page_of_record_broken (THREAD_ENTRY * thread_p, const LOG_LSA * log_lsa,
/* TODO - Do we need to handle NULL fwd_log_lsa? */
if (!LSA_ISNULL (&fwd_log_lsa))
{
if (LSA_GE (log_lsa, &fwd_log_lsa) || LSA_GT (&fwd_log_lsa, &log_Gl.hdr.eof_lsa))
/* log_Gl.hdr.eof_lsa can have a NULL_LSA value if recovery is started without an active log volume. Its value will be recovered during the log_recovery_analysis process. */
if (LSA_GE (log_lsa, &fwd_log_lsa)
|| (!LSA_ISNULL (&log_Gl.hdr.eof_lsa) && LSA_GT (&fwd_log_lsa, &log_Gl.hdr.eof_lsa)))
{
// check fwd_log_lsa value if it is corrupted or not
is_log_page_broken = true;
Expand Down

0 comments on commit 7f102a9

Please sign in to comment.