]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Rename register_unlink_segment() to register_unlink_tombstone()
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Jul 2026 17:05:56 +0000 (20:05 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 7 Jul 2026 17:05:56 +0000 (20:05 +0300)
commit650bb73c137ccdea3a502775e08482731cc799ba
treed4a0797b80d563f32d3c77d9c183b7ecdfcfd170
parent592de8bd21e177229eeef51cb474ccfc2070c65d
Rename register_unlink_segment() to register_unlink_tombstone()

Only "tombstone" files (first segment of main fork) are unlinked after
checkpoints, so rename the function and remove the extra arguments to
make that more clear.

Additionally, add an assertion in mdunlinkfiletag() that the FileTag
only contains expected values.

Author: Matthias van de Meent <boekewurm+postgres@gmail.com>
Reviewed-by: Thomas Munro <thomas.munro@gmail.com>
Discussion: https://www.postgresql.org/message-id/CAEze2WjfP95SL_Hsu7GzYXLnQyEsT49zOnNvbY_mBLCFiQra1g@mail.gmail.com
src/backend/storage/smgr/md.c