Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show upstream name in gdb show_fair_peers command

  • Loading branch information...
commit 75840cf767a41e579b96fef2f22c0545969868e7 1 parent c9c1697
@gnosek authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .gdbinit
View
2  .gdbinit
@@ -1,7 +1,7 @@
define show_fair_peer
set $n = (ngx_http_upstream_fair_shm_block_t *)$arg0
set $peers = $n->peers
- printf "upstream id: 0x%08x, current peer: %d/%d\n", $n->node.key, $peers->current, $peers->number
+ printf "upstream id: 0x%08x (%s), current peer: %d/%d\n", $n->node.key, $peers->name.data, $peers->current, $peers->number
set $i = 0
while $i < $peers->number
set $peer = &$peers->peer[$i]
Please sign in to comment.
Something went wrong with that request. Please try again.