]> arthur.barton.de Git - bup.git/commit
Cap timestamps in index to avoid needing to worry about fractional parts.
authorAaron M. Ucko <amu@alum.mit.edu>
Mon, 30 May 2011 23:03:00 +0000 (19:03 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Tue, 31 May 2011 04:31:34 +0000 (00:31 -0400)
commit7956f4eb2646d6ff9d56e62ef9e09e8d4763bb46
treea174c0c96b11a7a2bdfa26b45fc786b166229a73
parent4cb8d3c09194109eb145428002df9e392f9ec7d5
Cap timestamps in index to avoid needing to worry about fractional parts.

Avoid a potential race condition by which bup's use of whole-second
granularity for timestamps in the index could let it theoretically
miss some last-second changes by capping timestamps to at most one
second before the start of indexing per a newly introduced mandatory
parameter to bup.index.Writer.
cmd/index-cmd.py
lib/bup/index.py
lib/bup/t/tindex.py