@@ -43,8 +43,8 @@ typedef struct ShowArchiveRow
43
43
char tli [20 ];
44
44
char parent_tli [20 ];
45
45
char switchpoint [20 ];
46
- char min_segno [XLOG_FNAME_LEN + 1 ];
47
- char max_segno [XLOG_FNAME_LEN + 1 ];
46
+ char min_segno [MAXFNAMELEN ];
47
+ char max_segno [MAXFNAMELEN ];
48
48
char n_segments [20 ];
49
49
char size [20 ];
50
50
char zratio [20 ];
@@ -748,7 +748,7 @@ static void
748
748
show_archive_plain (const char * instance_name , uint32 xlog_seg_size ,
749
749
parray * tli_list , bool show_name )
750
750
{
751
- char segno_tmp [XLOG_FNAME_LEN + 1 ];
751
+ char segno_tmp [MAXFNAMELEN ];
752
752
parray * actual_tli_list = parray_new ();
753
753
#define SHOW_ARCHIVE_FIELDS_COUNT 10
754
754
int i ;
@@ -939,7 +939,7 @@ show_archive_json(const char *instance_name, uint32 xlog_seg_size,
939
939
int i ,j ;
940
940
PQExpBuffer buf = & show_buf ;
941
941
parray * actual_tli_list = parray_new ();
942
- char segno_tmp [XLOG_FNAME_LEN + 1 ];
942
+ char segno_tmp [MAXFNAMELEN ];
943
943
944
944
if (!first_instance )
945
945
appendPQExpBufferChar (buf , ',' );
@@ -968,7 +968,7 @@ show_archive_json(const char *instance_name, uint32 xlog_seg_size,
968
968
for (i = parray_num (actual_tli_list ) - 1 ; i >= 0 ; i -- )
969
969
{
970
970
timelineInfo * tlinfo = (timelineInfo * ) parray_get (actual_tli_list , i );
971
- char tmp_buf [XLOG_FNAME_LEN + 1 ];
971
+ char tmp_buf [MAXFNAMELEN ];
972
972
float zratio = 0 ;
973
973
974
974
if (i != (parray_num (actual_tli_list ) - 1 ))
0 commit comments