projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5d1886
)
Remove useless variable.
author
Thomas Munro
<tmunro@postgresql.org>
Tue, 16 Jun 2020 05:40:06 +0000
(17:40 +1200)
committer
Thomas Munro
<tmunro@postgresql.org>
Tue, 16 Jun 2020 05:40:06 +0000
(17:40 +1200)
src/backend/storage/file/buffile.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/storage/file/buffile.c
b/src/backend/storage/file/buffile.c
index b402f064bbf701450d51d73e299a984881fabc5e..3907349b691ea36b501fb0fc548f106649c957b1 100644
(file)
--- 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;
}
}