sapling/eden/scm/lib/indexedlog
Jun Wu 0ae5a59e9e indexedlog: fix metadata-only updates for Indexes
Summary:
Previously, `flush()` will skip writing the file if there are only metadata
changes. Fix it by detecting metadata changes.

This can potentially fix an issue that certain blackbox indexes are empty,
lagging and require scanning the whole log again and again. In that case,
the index itself is not changed (the root radix entry is not changed), but
only the metadata tracking how many bytes in Log the index covered
changed.

Reviewed By: sfilipco

Differential Revision: D20264627

fbshipit-source-id: 7ee48454a92b5786b847d8b1d738cc38183f7a32
2020-03-04 15:59:12 -08:00
..
benches indexedlog: write Checksum inline with Log 2020-02-28 09:23:55 -08:00
src indexedlog: fix metadata-only updates for Indexes 2020-03-04 15:59:12 -08:00
tests indexedlog: switch from bytes to minibytes 2020-02-12 13:57:37 -08:00
Cargo.toml indexedlog: try to use symlink for atomic_write on unix 2020-03-04 07:23:48 -08:00