basebackup_options *opt);
static void AppendStringToManifest(manifest_info *manifest, char *s);
static void AddFileToManifest(manifest_info *manifest, const char *spcoid,
- const char *pathname, size_t size, time_t mtime,
+ const char *pathname, size_t size,
+ pg_time_t mtime,
pg_checksum_context *checksum_ctx);
static void AddWALInfoToManifest(manifest_info *manifest, XLogRecPtr startptr,
TimeLineID starttli, XLogRecPtr endptr,
*/
static void
AddFileToManifest(manifest_info *manifest, const char *spcoid,
- const char *pathname, size_t size, time_t mtime,
+ const char *pathname, size_t size, pg_time_t mtime,
pg_checksum_context *checksum_ctx)
{
char pathbuf[MAXPGPATH];
}
pg_checksum_update(&checksum_ctx, (uint8 *) content, len);
- AddFileToManifest(manifest, NULL, filename, len, statbuf.st_mtime,
+ AddFileToManifest(manifest, NULL, filename, len,
+ (pg_time_t) statbuf.st_mtime,
&checksum_ctx);
}
total_checksum_failures += checksum_failures;
AddFileToManifest(manifest, spcoid, tarfilename, statbuf->st_size,
- statbuf->st_mtime, &checksum_ctx);
+ (pg_time_t) statbuf->st_mtime, &checksum_ctx);
return true;
}