Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit ceecae4

Browse files
committed
Change format to unsigned fort printing CFS messages
1 parent d713782 commit ceecae4

File tree

1 file changed

+4
-5
lines changed
  • src/backend/storage/file

1 file changed

+4
-5
lines changed

src/backend/storage/file/cfs.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,6 @@ void cfs_lock_file(FileMap* map, char const* file_path)
605605
pfree(map_bck_path);
606606
}
607607
LWLockRelease(CfsGcLock);
608-
break;
609608
}
610609
/* Wait until GC of segment is completed */
611610
pg_atomic_fetch_sub_u32(&map->lock, 1);
@@ -831,7 +830,7 @@ static bool cfs_gc_file(char* map_path, bool background)
831830

832831
if (!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",
835834
i, file_path, offs, size);
836835
goto Cleanup;
837836
}
@@ -929,7 +928,7 @@ static bool cfs_gc_file(char* map_path, bool background)
929928
{
930929
pg_atomic_fetch_sub_u32(&map->lock, CFS_GC_LOCK); /* release lock */
931930
pg_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",
933932
i, (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

10021001
if (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",
10051004
MyProcPid, file_path, physSize, newSize, virtSize, usedSize, (double)virtSize/newSize,
10061005
secs*USECS_PER_SEC + usecs);
10071006
}
@@ -1022,7 +1021,7 @@ static bool cfs_gc_file(char* map_path, bool background)
10221021
}
10231022
}
10241023
else 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",
10261025
MyProcPid, suf, map_path, physSize, virtSize, usedSize, (double)virtSize/physSize);
10271026

10281027
if (cfs_munmap(map) < 0)

0 commit comments

Comments
 (0)