LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - slotsync.c (source / functions) Coverage Total Hit UBC GNC CBC
Current: ba12a202ce1b5581dc0ed149cf3f637d7897ad5d vs 2866d8c7dbfc9d882a7d80fef93fbbe763709932 Lines: 88.1 % 565 498 67 498
Current Date: 2026-08-27 14:31:44 +0300 Functions: 100.0 % 31 31 1 30
Baseline: lcov-20260827-baseline Branches: 58.6 % 396 232 164 232
Baseline Date: 2026-08-27 14:31:58 +0300 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 20.0 % 5 1 4 1
(30,360] days: 85.9 % 198 170 28 170
(360..) days: 90.3 % 362 327 35 327
Function coverage date bins:
(30,360] days: 100.0 % 13 13 13
(360..) days: 100.0 % 18 18 1 17
Branch coverage date bins:
(7,30] days: 16.7 % 6 1 5 1
(30,360] days: 52.1 % 140 73 67 73
(360..) days: 63.2 % 250 158 92 158

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
update_local_synced_slot CBC 52 87.7 % (57 / 65) 58.3 % (35 / 60)
fetch_remote_slots CBC 35 92.9 % (52 / 56) 60.9 % (28 / 46)
slotsync_reread_config CBC 1 71.9 % (23 / 32) 30.8 % (8 / 26)
ValidateSlotSyncParams CBC 27 57.1 % (8 / 14) 40.0 % (8 / 20)
validate_remote_info CBC 16 89.3 % (25 / 28) 50.0 % (12 / 24)
ReplSlotSyncWorkerMain CBC 6 96.7 % (58 / 60) 57.7 % (15 / 26)
check_and_set_sync_info CBC 16 58.8 % (10 / 17) 21.4 % (3 / 14)
synchronize_one_slot CBC 52 77.8 % (42 / 54) 50.0 % (11 / 22)
ProcessSlotSyncMessage CBC 1 62.5 % (5 / 8) 25.0 % (2 / 8)
reserve_wal_for_local_slot CBC 10 88.9 % (16 / 18) 50.0 % (6 / 12)
update_and_persist_local_synced_slot CBC 16 73.3 % (11 / 15) 50.0 % (6 / 12)
ShutDownSlotSync CBC 1001 81.8 % (18 / 22) 50.0 % (5 / 10)
SyncReplicationSlots CBC 10 96.8 % (30 / 31) 77.8 % (14 / 18)
drop_local_obsolete_slots GNC 33 100.0 % (16 / 16) 75.0 % (12 / 16)
update_synced_slots_inactive_since CBC 1001 100.0 % (15 / 15) 77.8 % (14 / 18)
SlotSyncWorkerCanRestart CBC 15 100.0 % (8 / 8) 66.7 % (4 / 6)
slotsync_failure_callback CBC 1 88.9 % (8 / 9) 50.0 % (2 / 4)
slotsync_worker_onexit CBC 6 90.9 % (10 / 11) 50.0 % (2 / 4)
CheckAndGetDbnameFromConninfo CBC 17 100.0 % (5 / 5) 75.0 % (3 / 4)
extract_slot_names CBC 2 100.0 % (6 / 6) 83.3 % (5 / 6)
get_local_synced_slots CBC 33 100.0 % (10 / 10) 87.5 % (7 / 8)
local_sync_slot_required CBC 46 100.0 % (13 / 13) 93.8 % (15 / 16)
update_slotsync_skip_stats CBC 52 100.0 % (10 / 10) 83.3 % (5 / 6)
synchronize_slots CBC 33 100.0 % (9 / 9) 100.0 % (6 / 6)
wait_for_slot_activity CBC 24 100.0 % (8 / 8) 100.0 % (4 / 4)
HandleSlotSyncMessageInterrupt CBC 1 100.0 % (4 / 4)
IsSyncingReplicationSlots CBC 84 100.0 % (2 / 2)
SlotSyncShmemInit CBC 1236 100.0 % (5 / 5)
SlotSyncShmemRequest CBC 1239 100.0 % (3 / 3)
reset_syncing_flag CBC 10 100.0 % (7 / 7)
slotsync_worker_disconnect CBC 6 100.0 % (4 / 4)

Generated by: LCOV version 2.0-1