Fix iprop against legacy master with full log
commitffd0dda237fd3dea8e609070e23b37a6ff761090
authorViktor Dukhovni <viktor@twosigma.com>
Wed, 8 Jun 2016 21:26:43 +0000 (8 21:26 +0000)
committerViktor Dukhovni <viktor@twosigma.com>
Thu, 9 Jun 2016 05:03:10 +0000 (9 01:03 -0400)
tree8341f222c83fa1fb6bea1a62a08e07d7a7dd7116
parent7d9fcb46b9f63016bccfd469d1685b72a5756b3f
Fix iprop against legacy master with full log

When the master's log has all entries from version 1 to now, and no
uber entry (legacy master), then new slaves will not pull version 1,
because their uber record has version 1.

The fix is to force the uber version to 0 always, and avoid adding a
truncate nop when doing a full prop.  The uber record now records the
database version even in the absence of any other log entries so that
we know what to pull going forward.
kadmin/init.c
kadmin/load.c
lib/kadm5/iprop-log.c
lib/kadm5/ipropd_slave.c
lib/kadm5/log.c