We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8ce4ed commit 8e39259Copy full SHA for 8e39259
src/bin/pg_combinebackup/copy_file.c
@@ -126,7 +126,6 @@ checksum_file(const char *src, pg_checksum_context *checksum_ctx)
126
uint8 *buffer;
127
const int buffer_size = 50 * BLCKSZ;
128
ssize_t rb;
129
- unsigned offset = 0;
130
131
/* bail out if no checksum needed */
132
if (checksum_ctx->type == CHECKSUM_TYPE_NONE)
@@ -141,8 +140,6 @@ checksum_file(const char *src, pg_checksum_context *checksum_ctx)
141
140
{
142
if (pg_checksum_update(checksum_ctx, buffer, rb) < 0)
143
pg_fatal("could not update checksum of file \"%s\"", src);
144
-
145
- offset += rb;
146
}
147
148
if (rb < 0)
0 commit comments