postgres.git / summary / log / commit / refs

commit    c4f0876fb8d8f84fc0a6fb6aee91de120718664c
Author:   Thomas Munro <tmunro@postgresql.org>
Date:     Tue Nov 06 22:45:49 2018 +0000

    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


src/backend/storage/file/fd.c | 4 ---- 1 file changed, 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) [parent: 5613da4cc791]