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 <[email protected]>
Reviewed-by: Thomas Munro <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/caeze2wjfp95sl_hsu7gzyxlnqyest49zonnvby_mblcfiqr...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/650bb73c137ccdea3a502775e08482731cc799ba

Modified Files
--------------
src/backend/storage/smgr/md.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)

Reply via email to