Definition at line 105 of file load_manifest.c.
106{
113 char *buffer;
118
119
122 {
124 {
127 }
128 pg_fatal(
"could not open file \"%s\": %m", pathname);
129 }
130
131
133 pg_fatal(
"could not stat file \"%s\": %m", pathname);
134
135
138
139
141
150
152
153
154
155
157 {
159
163 {
164 if (rc < 0)
165 pg_fatal(
"could not read file \"%s\": %m", pathname);
166 else
167 pg_fatal(
"could not read file \"%s\": read %zd of %zu",
169 }
170
171
173
174
176 }
177 else
178 {
181
183
185
187 {
190
191
192
193
194
195
202 {
203 if (rc < 0)
204 pg_fatal(
"could not read file \"%s\": %m", pathname);
205 else
206 pg_fatal(
"could not read file \"%s\": read %zu of %zu",
207 pathname,
210 }
213 }
214
215
217
219 }
220
221
224}
void * pg_malloc(size_t size)
#define pg_malloc0_object(type)
#define ESTIMATED_BYTES_PER_MANIFEST_LINE
static void combinebackup_per_file_cb(JsonManifestParseContext *context, const char *pathname, uint64 size, pg_checksum_type checksum_type, int checksum_length, uint8 *checksum_payload)
static pg_noreturn void report_manifest_error(JsonManifestParseContext *context, const char *fmt,...) pg_attribute_printf(2
static void combinebackup_version_cb(JsonManifestParseContext *context, int manifest_version)
static void combinebackup_per_wal_range_cb(JsonManifestParseContext *context, TimeLineID tli, XLogRecPtr start_lsn, XLogRecPtr end_lsn)
static void combinebackup_system_identifier_cb(JsonManifestParseContext *context, uint64 manifest_system_identifier)
void json_parse_manifest(JsonManifestParseContext *context, const char *buffer, size_t size)
JsonManifestParseIncrementalState * json_parse_manifest_incremental_init(JsonManifestParseContext *context)
void json_parse_manifest_incremental_shutdown(JsonManifestParseIncrementalState *incstate)
void json_parse_manifest_incremental_chunk(JsonManifestParseIncrementalState *incstate, const char *chunk, size_t size, bool is_last)
#define pg_log_warning(...)
static int fd(const char *x, int i)
json_manifest_per_wal_range_callback per_wal_range_cb
json_manifest_system_identifier_callback system_identifier_cb
json_manifest_error_callback error_cb
json_manifest_per_file_callback per_file_cb
json_manifest_version_callback version_cb
References close, combinebackup_per_file_cb(), combinebackup_per_wal_range_cb(), combinebackup_system_identifier_cb(), combinebackup_version_cb(), JsonManifestParseContext::error_cb, ESTIMATED_BYTES_PER_MANIFEST_LINE, fb(), fd(), fstat, json_parse_manifest(), json_parse_manifest_incremental_chunk(), json_parse_manifest_incremental_init(), json_parse_manifest_incremental_shutdown(), Max, MAXPGPATH, Min, JsonManifestParseContext::per_file_cb, JsonManifestParseContext::per_wal_range_cb, PG_BINARY, pg_fatal, pg_free(), pg_log_warning, pg_malloc(), pg_malloc0_object, PG_UINT32_MAX, JsonManifestParseContext::private_data, read, READ_CHUNK_SIZE, report_manifest_error(), result, snprintf, JsonManifestParseContext::system_identifier_cb, total_size, and JsonManifestParseContext::version_cb.
Referenced by load_backup_manifests().