Skip to content

Commit

Permalink
CR from @rgs1; need to always set zxids to -1
Browse files Browse the repository at this point in the history
  • Loading branch information
alxn committed Jan 7, 2019
1 parent d402974 commit 2b80f27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zk_shell/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1698,6 +1698,7 @@ def fetch(endpoint, states, znodes, ephemerals, datasize, sessions, zxids, idx):
ephemerals[idx] = int(eph_count)
datasize[idx] = int(dsize)
sessions[idx] = int(session_count)
zxids[idx] = -1

try:
srvr = self._zk.cmd(hosts_to_endpoints(endpoint), "srvr")
Expand All @@ -1706,7 +1707,7 @@ def fetch(endpoint, states, znodes, ephemerals, datasize, sessions, zxids, idx):
zxids[idx] = int(line.split(None)[1], 0)
break
except:
zxids[idx] = -1
pass

workers = []
for idx, endpoint in enumerate(endpoints, 1):
Expand Down

0 comments on commit 2b80f27

Please sign in to comment.