Skip to content

Commit

Permalink
Improved wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jnidzwetzki committed Jan 22, 2023
1 parent 92182a3 commit 13301d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ CLI: `sudo pg_lw_lock_tracer -p 1698108 --statistics`
2904552882590752 [Pid 1704367] Acquired lock WALInsert (mode) LW_EXCLUSIVE / LWLockAcquire()
2904552882611656 [Pid 1704367] Unlock WALInsert
2904552882638194 [Pid 1704367] Wait for WALWrite
2904554401202251 [Pid 1704367] Lock for WALWrite was acquired in 1518564057 ns
2904554401202251 [Pid 1704367] Wait for WALWrite lock took 1518564057 ns
2904554401222926 [Pid 1704367] Waited but not acquired WALWrite (mode LW_EXCLUSIVE) / LWLockConditionalAcquire()
2904554401234504 [Pid 1704367] Acquired lock WALWrite (mode LW_EXCLUSIVE) / LWLockConditionalAcquire()
2904554404873664 [Pid 1704367] Unlock WALWrite
Expand Down
2 changes: 1 addition & 1 deletion src/pg_lock_tracer/pg_lw_lock_tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def print_lock_event(self, _cpu, data, _size):
print(f"{print_prefix} Wait for {tranche}")
elif event.event_type == Events.WAIT_DONE:
lock_time = self.get_lock_wait_time(event)
print(f"{print_prefix} Lock for {tranche} was acquired in {lock_time} ns")
print(f"{print_prefix} Wait for {tranche} lock took {lock_time} ns")
elif event.event_type == Events.COND_ACQUIRE:
print(
f"{print_prefix} Acquired lock {tranche} (mode) {lock_mode} "
Expand Down

0 comments on commit 13301d5

Please sign in to comment.