[Cyrus-CVS] src/cyrus/lib by brong

brong at andrew.cmu.edu brong at andrew.cmu.edu
Mon Jul 27 22:47:00 EDT 2009


Update of /afs/andrew.cmu.edu/system/cvs/src/cyrus/lib
In directory cyrus-devel-01.andrew.cmu.edu:/afs/andrew.cmu.edu/usr3/brong/src/cyrus/lib

Modified Files:
	cyrusdb_skiplist.c 
Log Message:
Use correctly sized variable for recovery time

Global Recovery was being htonl'd into a time_t,
which is a 64 bit value on some platforms.

Depending on the host bit order, this might be
promoted into the last 4 bytes of an 8 bit value,
meaning that the bytes written to disk were actually
all zero.

Change it to a bit32 and give it a more descriptive
name.

Thanks to Michael Bacon <baconm at email.unc.edu> for
finding the bug.


--- links to diffs follow ---
http://bugzilla.andrew.cmu.edu/cgi-bin/cvsweb.cgi/src/cyrus/lib/cyrusdb_skiplist.c.diff?r1=1.66&r2=1.67


More information about the Cyrus-cvs mailing list