Automatically upgrade iprop logs to add uber rec

We need the uber record all the time now, actually, except when merely
inspecting a log file.  This is important as we depend on replaying
entries written to the log in order to complete the HDB writes, and if
we don't have an uber record we can't do this step.

Also, log_init() should cleanup on error.
This commit is contained in:
Nicolas Williams
2016-02-26 17:45:28 -06:00
parent eabb2821c6
commit 1976e012b8
3 changed files with 50 additions and 16 deletions

View File

@@ -51,6 +51,7 @@
/* For kadm5_log_get_version_fd() */
#define LOG_VERSION_LAST -1
#define LOG_VERSION_FIRST 1
#define LOG_VERSION_UBER 0
#include <krb5.h>