From 47521693eda3066fc1569a2e8f53a8d33f50eeb5 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Tue, 2 May 2023 22:28:21 +0300 Subject: [PATCH] Fix file_cache build warnings (#4118) ## Describe your changes ## Issue ticket number and link ## Checklist before requesting a review - [ ] I have performed a self-review of my code. - [ ] If it is a core feature, I have added thorough tests. - [ ] Do we need to implement analytics? if so did you add the relevant metrics to the dashboard? - [ ] If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section. ## Checklist before merging - [ ] Do not forget to reformat commit message to not include the above checklist --- pgxn/neon/file_cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pgxn/neon/file_cache.c b/pgxn/neon/file_cache.c index cc46fb5a25..1ab2ae668a 100644 --- a/pgxn/neon/file_cache.c +++ b/pgxn/neon/file_cache.c @@ -96,6 +96,8 @@ static shmem_request_hook_type prev_shmem_request_hook; #endif static int lfc_shrinking_factor; /* power of two by which local cache size will be shrinked when lfc_free_space_watermark is reached */ +void FileCacheMonitorMain(Datum main_arg); + static void lfc_shmem_startup(void) { @@ -378,7 +380,6 @@ lfc_evict(RelFileNode rnode, ForkNumber forkNum, BlockNumber blkno) { BufferTag tag; FileCacheEntry* entry; - ssize_t rc; bool found; int chunk_offs = blkno & (BLOCKS_PER_CHUNK-1); uint32 hash;