@@ -821,8 +821,9 @@ print_file_list(FILE *out, const parray *files, const char *root)
821821 if (root && strstr (path , root ) == path )
822822 path = GetRelativePath (path , root );
823823
824- fprintf (out , "{\"path\":\"%s\", \"size\":\"%d\",\"mode\":\"%u\","
825- "\"is_datafile\":\"%u\", \"is_cfs\":\"%u\", \"crc\":\"%u\","
824+ fprintf (out , "{\"path\":\"%s\", \"size\":\"" INT64_FORMAT "\", "
825+ "\"mode\":\"%u\", \"is_datafile\":\"%u\", "
826+ "\"is_cfs\":\"%u\", \"crc\":\"%u\", "
826827 "\"compress_alg\":\"%s\"" ,
827828 path , file -> write_size , file -> mode ,
828829 file -> is_datafile ? 1 : 0 , file -> is_cfs ? 1 : 0 , file -> crc ,
@@ -1032,7 +1033,7 @@ dir_read_file_list(const char *root, const char *file_txt)
10321033
10331034 file = pgFileInit (filepath );
10341035
1035- file -> write_size = (int ) write_size ;
1036+ file -> write_size = (int64 ) write_size ;
10361037 file -> mode = (mode_t ) mode ;
10371038 file -> is_datafile = is_datafile ? true : false;
10381039 file -> is_cfs = is_cfs ? true : false;
0 commit comments