summaryrefslogtreecommitdiffstats
path: root/src/lib/kdb/libkdb5.exports
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2014-01-20 18:46:52 -0500
committerGreg Hudson <ghudson@mit.edu>2014-02-20 15:55:48 -0500
commitd1f9aa3737b2b3e62b5c5ed488d6112b7ce8a5ad (patch)
treef5f86bc7a30d0c05db26e9dacc20e875cf9bac9e /src/lib/kdb/libkdb5.exports
parent444ef5fe9ec8d64a5db27b3a8aaf6813dd7ef0e0 (diff)
downloadkrb5-d1f9aa3737b2b3e62b5c5ed488d6112b7ce8a5ad.tar.gz
krb5-d1f9aa3737b2b3e62b5c5ed488d6112b7ce8a5ad.tar.xz
krb5-d1f9aa3737b2b3e62b5c5ed488d6112b7ce8a5ad.zip
Factor out ulog serial number status check
Add a new function ulog_get_sno_status, which checks a serial number and timestamp against the ulog for currency. Use it in kdb5_util dump and in ulog_get_entries. Adjust parse_iprop_header's contract in dump.c to better match the ulog_get_sno_status contract. This change causes some minor behavior differences. kadmind will check for an empty ulog unless the last serial number matches exactly, and will never set lastentry when returning UPDATE_FULL_RESYNC_NEEDED (which was pointless). kdb5_util dump will recognize a dump file as current if it exactly matches the last serial number, even if the ulog is empty; it will be more robust in the presence of non-monotonic clocks; and it will properly lock around the ulog access.
Diffstat (limited to 'src/lib/kdb/libkdb5.exports')
-rw-r--r--src/lib/kdb/libkdb5.exports1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/kdb/libkdb5.exports b/src/lib/kdb/libkdb5.exports
index e1c462efe5..67d4336ef1 100644
--- a/src/lib/kdb/libkdb5.exports
+++ b/src/lib/kdb/libkdb5.exports
@@ -95,5 +95,6 @@ xdr_kdb_last_t
xdr_kdb_incr_result_t
xdr_kdb_fullresync_result_t
ulog_get_entries
+ulog_get_sno_status
ulog_replay
xdr_kdb_incr_update_t