From 09c5acee8ef90a9a94993dad937bdcd56ccaf1e3 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Tue, 12 Jul 2022 10:26:48 -0400 Subject: Rename some functions to mention Relation instead of RelFileLocator. This is definitely shorter, and hopefully clearer. Kyotaro Horiguchi, reviewed by Dilip Kumar and by me Discussion: http://postgr.es/m/20220707.174436.1885393789789795413.horikyota.ntt@gmail.com --- src/backend/storage/buffer/localbuf.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/backend/storage/buffer/localbuf.c') diff --git a/src/backend/storage/buffer/localbuf.c b/src/backend/storage/buffer/localbuf.c index 41a08076b31..9c038851d75 100644 --- a/src/backend/storage/buffer/localbuf.c +++ b/src/backend/storage/buffer/localbuf.c @@ -312,7 +312,7 @@ MarkLocalBufferDirty(Buffer buffer) } /* - * DropRelFileLocatorLocalBuffers + * DropRelationLocalBuffers * This function removes from the buffer pool all the pages of the * specified relation that have block numbers >= firstDelBlock. * (In particular, with firstDelBlock = 0, all pages are removed.) @@ -320,11 +320,11 @@ MarkLocalBufferDirty(Buffer buffer) * out first. Therefore, this is NOT rollback-able, and so should be * used only with extreme caution! * - * See DropRelFileLocatorBuffers in bufmgr.c for more notes. + * See DropRelationBuffers in bufmgr.c for more notes. */ void -DropRelFileLocatorLocalBuffers(RelFileLocator rlocator, ForkNumber forkNum, - BlockNumber firstDelBlock) +DropRelationLocalBuffers(RelFileLocator rlocator, ForkNumber forkNum, + BlockNumber firstDelBlock) { int i; @@ -363,14 +363,14 @@ DropRelFileLocatorLocalBuffers(RelFileLocator rlocator, ForkNumber forkNum, } /* - * DropRelFileLocatorAllLocalBuffers + * DropRelationAllLocalBuffers * This function removes from the buffer pool all pages of all forks * of the specified relation. * - * See DropRelFileLocatorsAllBuffers in bufmgr.c for more notes. + * See DropRelationsAllBuffers in bufmgr.c for more notes. */ void -DropRelFileLocatorAllLocalBuffers(RelFileLocator rlocator) +DropRelationAllLocalBuffers(RelFileLocator rlocator) { int i; @@ -589,7 +589,7 @@ AtProcExit_LocalBuffers(void) { /* * We shouldn't be holding any remaining pins; if we are, and assertions - * aren't enabled, we'll fail later in DropRelFileLocatorBuffers while + * aren't enabled, we'll fail later in DropRelationBuffers while * trying to drop the temp rels. */ CheckForLocalBufferLeaks(); -- cgit v1.2.3