diff options
author | Robert Haas <rhaas@postgresql.org> | 2022-07-12 10:26:48 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2022-07-12 10:26:48 -0400 |
commit | 09c5acee8ef90a9a94993dad937bdcd56ccaf1e3 (patch) | |
tree | 7491e041b17303474d43eaea92bd02947a3fbb59 /src/backend/storage/buffer/localbuf.c | |
parent | 5ca0fe5c8ad7987beee95669124c7e245f2816d8 (diff) | |
download | postgresql-09c5acee8ef90a9a94993dad937bdcd56ccaf1e3.tar.gz postgresql-09c5acee8ef90a9a94993dad937bdcd56ccaf1e3.zip |
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
Diffstat (limited to 'src/backend/storage/buffer/localbuf.c')
-rw-r--r-- | src/backend/storage/buffer/localbuf.c | 16 |
1 files changed, 8 insertions, 8 deletions
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(); |