summaryrefslogtreecommitdiffstats
path: root/reftable/readwrite_test.c
diff options
context:
space:
mode:
authorHan-Wen Nienhuys <hanwen@google.com>2022-02-21 19:46:07 +0100
committerJunio C Hamano <gitster@pobox.com>2022-02-23 22:36:26 +0100
commit45c2fcc2a0659e42c7e4f21f0b97393df261ca51 (patch)
tree310a0c84d44b04f2c04580588c51246d3a239df3 /reftable/readwrite_test.c
parentreftable: add a test that verifies that writing empty keys fails (diff)
downloadgit-45c2fcc2a0659e42c7e4f21f0b97393df261ca51.tar.xz
git-45c2fcc2a0659e42c7e4f21f0b97393df261ca51.zip
reftable: avoid writing empty keys at the block layer
The public interface (reftable_writer) already ensures that keys are written in strictly increasing order, and an empty key by definition fails this check. However, by also enforcing this at the block layer, it is easier to verify that records (which are written into blocks) never have to consider the possibility of empty keys. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'reftable/readwrite_test.c')
0 files changed, 0 insertions, 0 deletions