aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/buffile.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2020-06-16 17:40:06 +1200
committerThomas Munro <tmunro@postgresql.org>2020-06-16 17:40:06 +1200
commit4dd804a99cd66d8d336ce7060c91e23db3263c31 (patch)
treeabfb46569f66c1272df72dd4648550958e44e5e4 /src/backend/storage/file/buffile.c
parentf5d18862bbb327b67cd0f33f3d11351096080665 (diff)
downloadpostgresql-4dd804a99cd66d8d336ce7060c91e23db3263c31.tar.gz
postgresql-4dd804a99cd66d8d336ce7060c91e23db3263c31.zip
Remove useless variable.
Diffstat (limited to 'src/backend/storage/file/buffile.c')
-rw-r--r--src/backend/storage/file/buffile.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c
index b402f064bbf..3907349b691 100644
--- a/src/backend/storage/file/buffile.c
+++ b/src/backend/storage/file/buffile.c
@@ -581,7 +581,6 @@ BufFileRead(BufFile *file, void *ptr, size_t size)
void
BufFileWrite(BufFile *file, void *ptr, size_t size)
{
- size_t nwritten = 0;
size_t nthistime;
Assert(!file->readOnly);
@@ -615,7 +614,6 @@ BufFileWrite(BufFile *file, void *ptr, size_t size)
file->nbytes = file->pos;
ptr = (void *) ((char *) ptr + nthistime);
size -= nthistime;
- nwritten += nthistime;
}
}