Reinitialize ulog when wrapping serial number
authorGreg Hudson <ghudson@mit.edu>
Tue, 21 Jan 2014 15:58:04 +0000 (10:58 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 30 Jan 2014 23:33:09 +0000 (18:33 -0500)
commit3c147860df11d8ef24dabf07d32f36915f3b640c
treed854a80b35ec51811336dd2930caf78d2545f163
parent93e2c540101475d3799304d0a12be840a9b1486c
Reinitialize ulog when wrapping serial number

When we wrap the serial number, reinitialize the ulog so that kdb_num
starts counting from 1, instead of leaving the ulog in a weird state
where kdb_num == ulogentries but kdb_last_sno == 1 and the serial
numbers in the circular array aren't necessarily contiguous.

ticket: 7839 (new)
target_version: 1.12.2
tags: pullup
src/lib/kdb/kdb_log.c