]> git.ipfire.org Git - thirdparty/git.git/commit
t/t4216-log-bloom.sh: harden `test_bloom_filters_not_used()`
authorTaylor Blau <me@ttaylorr.com>
Tue, 25 Jun 2024 17:39:09 +0000 (13:39 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 25 Jun 2024 20:52:05 +0000 (13:52 -0700)
commitf88611c6d06ce1d2b7fe0e0ca440ff0fbbd45da8
treeeebb91d7de4715a2092cb7d9307735f6a14c5198
parentd4dbce1db5cd227a57074bcfc7ec9f0655961bba
t/t4216-log-bloom.sh: harden `test_bloom_filters_not_used()`

The existing implementation of test_bloom_filters_not_used() asserts
that the Bloom filter sub-system has not been initialized at all, by
checking for the absence of any data from it from trace2.

In the following commit, it will become possible to load Bloom filters
without using them (e.g., because the `commitGraph.changedPathVersion`
introduced later in this series is incompatible with the hash version
with which the commit-graph's Bloom filters were written).

When this is the case, it's possible to initialize the Bloom filter
sub-system, while still not using any Bloom filters. When this is the
case, check that the data dump from the Bloom sub-system is all zeros,
indicating that no filters were used.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4216-log-bloom.sh