Skip to content

Commit

Permalink
[CBRD-25602] Fix assert() when executing drop table with vacuum_disab…
Browse files Browse the repository at this point in the history
…le=y
  • Loading branch information
hornetmj committed Nov 22, 2024
1 parent 7f102a9 commit e8337fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/query/vacuum.c
Original file line number Diff line number Diff line change
Expand Up @@ -6068,6 +6068,11 @@ vacuum_log_add_dropped_file (THREAD_ENTRY * thread_p, const VFID * vfid, const O
LOG_DATA_ADDR addr;
VACUUM_DROPPED_FILES_RCV_DATA rcv_data;

if (prm_get_bool_value (PRM_ID_DISABLE_VACUUM))
{
return;
}

vacuum_er_log (VACUUM_ER_LOG_DROPPED_FILES, "Append %s log from dropped file %d|%d.",
pospone_or_undo ? "postpone" : "undo", vfid->volid, vfid->fileid);

Expand Down

0 comments on commit e8337fd

Please sign in to comment.