Skip to content

Commit b4275a6

Browse files
committed
Remote read of config file
1 parent bb760c3 commit b4275a6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/utils/configuration.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "configuration.h"
1212
#include "logger.h"
1313
#include "pgut.h"
14+
#include "file.h"
1415

1516
#include "datatype/timestamp.h"
1617

@@ -555,7 +556,7 @@ config_read_opt(const char *path, ConfigOption options[], int elevel,
555556
}
556557
}
557558

558-
fclose(fp);
559+
fio_close_stream(fp);
559560

560561
return parsed_options;
561562
}

src/utils/pgut.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ pgut_fopen(const char *path, const char *mode, bool missing_ok)
841841
{
842842
FILE *fp;
843843

844-
if ((fp = fopen(path, mode)) == NULL)
844+
if ((fp = fio_open_stream(path, FIO_BACKUP_HOST)) == NULL)
845845
{
846846
if (missing_ok && errno == ENOENT)
847847
return NULL;

0 commit comments

Comments
 (0)