@@ -605,7 +605,6 @@ void cfs_lock_file(FileMap* map, char const* file_path)
605605pfree (map_bck_path );
606606}
607607LWLockRelease (CfsGcLock );
608- break ;
609608}
610609/* Wait until GC of segment is completed */
611610pg_atomic_fetch_sub_u32 (& map -> lock ,1 );
@@ -831,7 +830,7 @@ static bool cfs_gc_file(char* map_path, bool background)
831830
832831if (!cfs_read_file (fd ,block ,size ))
833832{
834- elog (WARNING ,"CFS GC failed to read block %d of file %s at position %d size %d : %m" ,
833+ elog (WARNING ,"CFS GC failed to read block %u of file %s at position %u size %u : %m" ,
835834i ,file_path ,offs ,size );
836835gotoCleanup ;
837836}
@@ -929,7 +928,7 @@ static bool cfs_gc_file(char* map_path, bool background)
929928{
930929pg_atomic_fetch_sub_u32 (& map -> lock ,CFS_GC_LOCK );/* release lock */
931930pg_atomic_fetch_sub_u32 (& cfs_state -> n_active_gc ,1 );
932- elog (ERROR ,"CFS: verification failed for block %d position %d size %d of relation %s: error code %d" ,
931+ elog (ERROR ,"CFS: verification failed for block %u position %u size %u of relation %s: error code %d" ,
933932i , (int )CFS_INODE_OFFS (inode ),size ,file_bck_path , (int )res );
934933}
935934}
@@ -1001,7 +1000,7 @@ static bool cfs_gc_file(char* map_path, bool background)
10011000
10021001if (succeed )
10031002{
1004- elog (LOG ,"CFS GC worker %d: defragment file %s: old size %d , new size %d , logical size %d , used %d , compression ratio %f, time %ld usec" ,
1003+ elog (LOG ,"CFS GC worker %d: defragment file %s: old size %u , new size %u , logical size %u , used %u , compression ratio %f, time %ld usec" ,
10051004MyProcPid ,file_path ,physSize ,newSize ,virtSize ,usedSize , (double )virtSize /newSize ,
10061005secs * USECS_PER_SEC + usecs );
10071006}
@@ -1022,7 +1021,7 @@ static bool cfs_gc_file(char* map_path, bool background)
10221021}
10231022}
10241023else if (cfs_state -> max_iterations == 1 )
1025- elog (LOG ,"CFS GC worker %d: file %.*s: physical size %d , logical size %d , used %d , compression ratio %f" ,
1024+ elog (LOG ,"CFS GC worker %d: file %.*s: physical size %u , logical size %u , used %u , compression ratio %f" ,
10261025MyProcPid ,suf ,map_path ,physSize ,virtSize ,usedSize , (double )virtSize /physSize );
10271026
10281027if (cfs_munmap (map )< 0 )