summaryrefslogtreecommitdiff
path: root/compat/regex/regex_internal.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-11-26 07:42:53 +0100
committerJunio C Hamano <gitster@pobox.com>2024-11-26 17:18:36 +0900
commit46b5f67019bbf9864416d13693f6292bca62d7af (patch)
tree6be1d1246f4b3030c13139ae1ad85056d970bf00 /compat/regex/regex_internal.c
parentad0986c6764eed4dd9f0302aa3b1c5367e5c16a3 (diff)
refs/reftable: handle reloading stacks in the reftable backend
When accessing a stack we almost always have to reload the stack before reading data from it. This is mostly because Git does not have a notification mechanism for when underlying data has been changed, and thus we are forced to opportunistically reload the stack every single time to account for any changes that may have happened concurrently. Handle the reload internally in `backend_for()`. For one this forces callsites to think about whether or not they need to reload the stack. But second this makes the logic to access stacks more self-contained by letting the `struct reftable_backend` manage themselves. Update callsites where we don't reload the stack to document why we don't. In some cases it's unclear whether it is the right thing to do in the first place, but fixing that is outside of the scope of this patch series. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat/regex/regex_internal.c')
0 files changed, 0 insertions, 0 deletions