@@ -96,7 +96,7 @@ backup_data_file(const char *from_root, const char *to_root,
96
96
if (errno == ENOENT )
97
97
return false;
98
98
99
- elog (ERROR_SYSTEM , _ ( "can't open backup mode file \"%s\": %s") ,
99
+ elog (ERROR_SYSTEM , "cannot open backup mode file \"%s\": %s" ,
100
100
file -> path , strerror (errno ));
101
101
}
102
102
@@ -110,7 +110,7 @@ backup_data_file(const char *from_root, const char *to_root,
110
110
{
111
111
int errno_tmp = errno ;
112
112
fclose (in );
113
- elog (ERROR_SYSTEM , _ ( "can't open backup file \"%s\": %s") ,
113
+ elog (ERROR_SYSTEM , "cannot open backup file \"%s\": %s" ,
114
114
to_path , strerror (errno_tmp ));
115
115
}
116
116
@@ -160,7 +160,7 @@ backup_data_file(const char *from_root, const char *to_root,
160
160
/* oops */
161
161
fclose (in );
162
162
fclose (out );
163
- elog (ERROR_SYSTEM , _ ( "can't write at block %u of \"%s\": %s") ,
163
+ elog (ERROR_SYSTEM , "cannot write at block %u of \"%s\": %s" ,
164
164
blknum , to_path , strerror (errno_tmp ));
165
165
}
166
166
@@ -176,7 +176,7 @@ backup_data_file(const char *from_root, const char *to_root,
176
176
{
177
177
fclose (in );
178
178
fclose (out );
179
- elog (ERROR_SYSTEM , _ ( "can't read backup mode file \"%s\": %s") ,
179
+ elog (ERROR_SYSTEM , "cannot read backup mode file \"%s\": %s" ,
180
180
file -> path , strerror (errno_tmp ));
181
181
}
182
182
@@ -206,7 +206,7 @@ backup_data_file(const char *from_root, const char *to_root,
206
206
fclose (in );
207
207
fclose (out );
208
208
elog (ERROR_SYSTEM ,
209
- _ ( "can't write at block %u of \"%s\": %s") ,
209
+ "cannot write at block %u of \"%s\": %s" ,
210
210
blknum , to_path , strerror (errno_tmp ));
211
211
}
212
212
COMP_CRC32C (crc , & header , sizeof (header ));
@@ -220,7 +220,7 @@ backup_data_file(const char *from_root, const char *to_root,
220
220
/* oops */
221
221
fclose (in );
222
222
fclose (out );
223
- elog (ERROR_SYSTEM , _ ( "can't write at block %u of \"%s\": %s") ,
223
+ elog (ERROR_SYSTEM , "cannot write at block %u of \"%s\": %s" ,
224
224
blknum , to_path , strerror (errno_tmp ));
225
225
}
226
226
@@ -239,7 +239,7 @@ backup_data_file(const char *from_root, const char *to_root,
239
239
int errno_tmp = errno ;
240
240
fclose (in );
241
241
fclose (out );
242
- elog (ERROR_SYSTEM , _ ( "can't change mode of \"%s\": %s") , file -> path ,
242
+ elog (ERROR_SYSTEM , "cannot change mode of \"%s\": %s" , file -> path ,
243
243
strerror (errno_tmp ));
244
244
}
245
245
@@ -258,7 +258,7 @@ backup_data_file(const char *from_root, const char *to_root,
258
258
if (file -> write_size == 0 && file -> read_size > 0 )
259
259
{
260
260
if (remove (to_path ) == -1 )
261
- elog (ERROR_SYSTEM , _ ( "can't remove file \"%s\": %s") , to_path ,
261
+ elog (ERROR_SYSTEM , "cannot remove file \"%s\": %s" , to_path ,
262
262
strerror (errno ));
263
263
return false;
264
264
}
@@ -296,7 +296,7 @@ restore_data_file(const char *from_root,
296
296
in = fopen (file -> path , "r" );
297
297
if (in == NULL )
298
298
{
299
- elog (ERROR_SYSTEM , _ ( "can't open backup file \"%s\": %s") , file -> path ,
299
+ elog (ERROR_SYSTEM , "cannot open backup file \"%s\": %s" , file -> path ,
300
300
strerror (errno ));
301
301
}
302
302
@@ -313,7 +313,7 @@ restore_data_file(const char *from_root,
313
313
{
314
314
int errno_tmp = errno ;
315
315
fclose (in );
316
- elog (ERROR_SYSTEM , _ ( "can't open restore target file \"%s\": %s") ,
316
+ elog (ERROR_SYSTEM , "cannot open restore target file \"%s\": %s" ,
317
317
to_path , strerror (errno_tmp ));
318
318
}
319
319
@@ -334,20 +334,20 @@ restore_data_file(const char *from_root,
334
334
else if (read_len != 0 && feof (in ))
335
335
{
336
336
elog (ERROR_CORRUPTED ,
337
- _ ( "odd size page found at block %u of \"%s\"" ) ,
337
+ "odd size page found at block %u of \"%s\"" ,
338
338
blknum , file -> path );
339
339
}
340
340
else
341
341
{
342
- elog (ERROR_SYSTEM , _ ( "can't read block %u of \"%s\": %s") ,
342
+ elog (ERROR_SYSTEM , "cannot read block %u of \"%s\": %s" ,
343
343
blknum , file -> path , strerror (errno_tmp ));
344
344
}
345
345
}
346
346
347
347
if (header .block < blknum || header .hole_offset > BLCKSZ ||
348
348
(int ) header .hole_offset + (int ) header .hole_length > BLCKSZ )
349
349
{
350
- elog (ERROR_CORRUPTED , _ ( "backup is broken at block %u" ) ,
350
+ elog (ERROR_CORRUPTED , "backup is broken at block %u" ,
351
351
blknum );
352
352
}
353
353
@@ -360,7 +360,7 @@ restore_data_file(const char *from_root,
360
360
if (fread (page .data , 1 , header .hole_offset , in ) != header .hole_offset ||
361
361
fread (page .data + upper_offset , 1 , upper_length , in ) != upper_length )
362
362
{
363
- elog (ERROR_SYSTEM , _ ( "can't read block %u of \"%s\": %s") ,
363
+ elog (ERROR_SYSTEM , "cannot read block %u of \"%s\": %s" ,
364
364
blknum , file -> path , strerror (errno ));
365
365
}
366
366
@@ -370,10 +370,10 @@ restore_data_file(const char *from_root,
370
370
*/
371
371
blknum = header .block ;
372
372
if (fseek (out , blknum * BLCKSZ , SEEK_SET ) < 0 )
373
- elog (ERROR_SYSTEM , _ ( "can't seek block %u of \"%s\": %s") ,
373
+ elog (ERROR_SYSTEM , "cannot seek block %u of \"%s\": %s" ,
374
374
blknum , to_path , strerror (errno ));
375
375
if (fwrite (page .data , 1 , sizeof (page ), out ) != sizeof (page ))
376
- elog (ERROR_SYSTEM , _ ( "can't write block %u of \"%s\": %s") ,
376
+ elog (ERROR_SYSTEM , "cannot write block %u of \"%s\": %s" ,
377
377
blknum , file -> path , strerror (errno ));
378
378
}
379
379
@@ -383,7 +383,7 @@ restore_data_file(const char *from_root,
383
383
int errno_tmp = errno ;
384
384
fclose (in );
385
385
fclose (out );
386
- elog (ERROR_SYSTEM , _ ( "can't change mode of \"%s\": %s") , to_path ,
386
+ elog (ERROR_SYSTEM , "cannot change mode of \"%s\": %s" , to_path ,
387
387
strerror (errno_tmp ));
388
388
}
389
389
@@ -420,7 +420,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
420
420
if (errno == ENOENT )
421
421
return false;
422
422
423
- elog (ERROR_SYSTEM , _ ( "can't open source file \"%s\": %s") , file -> path ,
423
+ elog (ERROR_SYSTEM , "cannot open source file \"%s\": %s" , file -> path ,
424
424
strerror (errno ));
425
425
}
426
426
@@ -434,7 +434,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
434
434
{
435
435
int errno_tmp = errno ;
436
436
fclose (in );
437
- elog (ERROR_SYSTEM , _ ( "can't open destination file \"%s\": %s") ,
437
+ elog (ERROR_SYSTEM , "cannot open destination file \"%s\": %s" ,
438
438
to_path , strerror (errno_tmp ));
439
439
}
440
440
@@ -443,7 +443,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
443
443
{
444
444
fclose (in );
445
445
fclose (out );
446
- elog (ERROR_SYSTEM , _ ( "can't stat \"%s\": %s") , file -> path ,
446
+ elog (ERROR_SYSTEM , "cannot stat \"%s\": %s" , file -> path ,
447
447
strerror (errno ));
448
448
}
449
449
@@ -459,7 +459,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
459
459
/* oops */
460
460
fclose (in );
461
461
fclose (out );
462
- elog (ERROR_SYSTEM , _ ( "can't write to \"%s\": %s") , to_path ,
462
+ elog (ERROR_SYSTEM , "cannot write to \"%s\": %s" , to_path ,
463
463
strerror (errno_tmp ));
464
464
}
465
465
/* update CRC */
@@ -474,7 +474,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
474
474
{
475
475
fclose (in );
476
476
fclose (out );
477
- elog (ERROR_SYSTEM , _ ( "can't read backup mode file \"%s\": %s") ,
477
+ elog (ERROR_SYSTEM , "cannot read backup mode file \"%s\": %s" ,
478
478
file -> path , strerror (errno_tmp ));
479
479
}
480
480
@@ -487,7 +487,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
487
487
/* oops */
488
488
fclose (in );
489
489
fclose (out );
490
- elog (ERROR_SYSTEM , _ ( "can't write to \"%s\": %s") , to_path ,
490
+ elog (ERROR_SYSTEM , "cannot write to \"%s\": %s" , to_path ,
491
491
strerror (errno_tmp ));
492
492
}
493
493
/* update CRC */
@@ -507,7 +507,7 @@ copy_file(const char *from_root, const char *to_root, pgFile *file)
507
507
errno_tmp = errno ;
508
508
fclose (in );
509
509
fclose (out );
510
- elog (ERROR_SYSTEM , _ ( "can't change mode of \"%s\": %s") , to_path ,
510
+ elog (ERROR_SYSTEM , "cannot change mode of \"%s\": %s" , to_path ,
511
511
strerror (errno_tmp ));
512
512
}
513
513
0 commit comments