git/reftable
Karthik Nayak aae63be1d8 reftable/stack: remove `REFTABLE_STACK_NEW_ADDITION_RELOAD`
In 80e7342ea8 (reftable/stack: allow locking of outdated stacks,
2024-09-24), the `REFTABLE_STACK_NEW_ADDITION_RELOAD` was introduced so
that callers of `reftable_stack_init_addition()` can also reload the
stack if there was a concurrent update made before the lock was
obtained.

Then 16684b6fae (refs/reftable: always reload stacks when creating
lock, 2025-08-12) updated all of the remaining call-sites to propagate
this flag to ensure that we always reload the stack whenever there was a
concurrent update.

As all calls to `reftable_stack_init_addition()` inevitably propagate
the flag, it is safe to remove the flag and its associated code and make
the reloading of the stack the default flow. This makes it easier to
follow the flow and simplifies the logic.

The only exceptions are:

  1. Unit tests, where we explicitly do not propagate the flag. These
     tests are now modified with the new status quo.

  2. `reftable_stack_clean()`, which was propagating 0 to
     `reftable_stack_new_addition()` but was then manually reloading the
     stack after. Here the new flow will achieve the same, while also
     allowing us to remove the manual reload.

This also makes two checks for 'REFTABLE_OUTDATED_ERROR' redundant, so
remove them also.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-08-24 08:11:18 -07:00
..
LICENSE
basics.c reftable/basics: fix OOB read on binary search of empty range 2026-07-03 11:08:02 -07:00
basics.h
block.c reftable/block: fix OOB read with bogus restart offset 2026-07-03 11:08:03 -07:00
block.h
blocksource.c reftable/system: add abstraction to mmap files 2026-04-02 10:45:44 -07:00
blocksource.h
constants.h
error.c
fsck.c reftable/fsck: use REFTABLE_UNUSED instead of UNUSED 2026-04-02 10:45:43 -07:00
iter.c
iter.h
merged.c
merged.h
pq.c
pq.h
record.c reftable/record: don't abort when decoding invalid ref value type 2026-07-03 11:08:02 -07:00
record.h
reftable-basics.h
reftable-block.h
reftable-blocksource.h
reftable-constants.h
reftable-error.h
reftable-fsck.h
reftable-iterator.h
reftable-merged.h
reftable-record.h
reftable-stack.h reftable/stack: remove `REFTABLE_STACK_NEW_ADDITION_RELOAD` 2026-08-24 08:11:18 -07:00
reftable-system.h
reftable-table.h
reftable-writer.h reftable: split up write options 2026-06-26 08:27:19 -07:00
stack.c reftable/stack: remove `REFTABLE_STACK_NEW_ADDITION_RELOAD` 2026-08-24 08:11:18 -07:00
stack.h reftable: split up write options 2026-06-26 08:27:19 -07:00
system.c reftable/system: add abstraction to mmap files 2026-04-02 10:45:44 -07:00
system.h doc: fix typos via codespell 2026-06-08 00:21:35 +09:00
table.c Merge branch 'ps/reftable-hardening' 2026-07-19 10:42:15 -07:00
table.h
tree.c
tree.h
writer.c Merge branch 'jk/reftable-leakfix' 2026-07-13 08:27:26 -07:00
writer.h reftable: split up write options 2026-06-26 08:27:19 -07:00