Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

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.

https://github.com/krb5/krb5/commit/3c147860df11d8ef24dabf07d32f36915f3b640c
Author: Greg Hudson <ghudson@mit.edu>
Commit: 3c147860df11d8ef24dabf07d32f36915f3b640c
Branch: master
src/lib/kdb/kdb_log.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
From: ghudson@mit.edu
Subject: git commit

Add test case for ulog serial number wrapping

Add a unit test program named t_ulog. Make it map a ulog file, set up
header state where kdb_last_sno is the last serial number, and then
add an empty update. Check that the result is a ulog header with one
update at serial number 1.

https://github.com/krb5/krb5/commit/b8a0c995d2a72cbfd2500de89e395e1ee10fc8e0
Author: Greg Hudson <ghudson@mit.edu>
Commit: b8a0c995d2a72cbfd2500de89e395e1ee10fc8e0
Branch: master
.gitignore | 2 +
src/lib/kdb/Makefile.in | 10 +++++
src/lib/kdb/deps | 18 +++++++++
src/lib/kdb/libkdb5.exports | 1 +
src/lib/kdb/t_ulog.c | 88 +++++++++++++++++++++++++++++++++++++++++++
5 files changed, 119 insertions(+), 0 deletions(-)
From: tlyu@mit.edu
Subject: git commit

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.

(cherry picked from commit 3c147860df11d8ef24dabf07d32f36915f3b640c)

https://github.com/krb5/krb5/commit/fb5b9d2359f9820fd2c6f08a50472a921d9ca8de
Author: Greg Hudson <ghudson@mit.edu>
Committer: Tom Yu <tlyu@mit.edu>
Commit: fb5b9d2359f9820fd2c6f08a50472a921d9ca8de
Branch: krb5-1.12
src/lib/kdb/kdb_log.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)