Commit 03d7329
Fix Codacy false-positive findings and unused variable warnings
Replace strlen(PSWD_KEYWORD) with sizeof(PSWD_KEYWORD) - 1 since
PSWD_KEYWORD is a compile-time string literal; evaluated at compile
time with no runtime overhead.
Remove unused COL_LSN and COL_SNAP variables in
spock_create_slot_and_read_progress(); the read_peer_progress result
columns 0 and 1 are intentionally skipped in favour of the values
already obtained from the replication protocol.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c7e7515 commit 03d7329
2 files changed
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
865 | | - | |
| 865 | + | |
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
584 | | - | |
| 582 | + | |
585 | 583 | | |
586 | 584 | | |
587 | 585 | | |
| |||
0 commit comments