aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2018-11-07 11:45:49 +1300
committerThomas Munro <tmunro@postgresql.org>2018-11-07 12:06:43 +1300
commitc4f0876fb8d8f84fc0a6fb6aee91de120718664c (patch)
tree30570ed836dff697cf028bb5fd8ca70ab84ddf6e /src/backend/storage/file/fd.c
parent5613da4cc7910f4b686b818dd1ee68703d62192f (diff)
downloadpostgresql-c4f0876fb8d8f84fc0a6fb6aee91de120718664c.tar.gz
postgresql-c4f0876fb8d8f84fc0a6fb6aee91de120718664c.zip
Remove set-but-unused variable.
Clean-up for commit c24dcd0c. Reported-by: Andrew Dunstan Discussion: https://postgr.es/m/2d52ff4a-5440-f6f1-7806-423b0e6370cb%402ndQuadrant.com
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 6611edbbd2c..2d75773ef02 100644
--- a/src/backend/storage/file/fd.c
+++ b/src/backend/storage/file/fd.c
@@ -2004,15 +2004,11 @@ FileSync(File file, uint32 wait_event_info)
off_t
FileSize(File file)
{
- Vfd *vfdP;
-
Assert(FileIsValid(file));
DO_DB(elog(LOG, "FileSize %d (%s)",
file, VfdCache[file].fileName));
- vfdP = &VfdCache[file];
-
if (FileIsNotOpen(file))
{
if (FileAccess(file) < 0)