]> git.ipfire.org Git - thirdparty/git.git/commit
refs/reftable: reload correct stack when creating reflog iter
authorPatrick Steinhardt <ps@pks.im>
Tue, 5 Mar 2024 12:10:55 +0000 (13:10 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Mar 2024 17:10:06 +0000 (09:10 -0800)
commiteea0d11d6d7114c850e50fa3f247b2ecf9a330fc
tree0647aa12bbe9ee17ccb81a0d83fdd59b26285d81
parent2efe7958d6b3119a4471d718ee530b296b5d50b6
refs/reftable: reload correct stack when creating reflog iter

When creating a new reflog iterator, we first have to reload the stack
that the iterator is being created. This is done so that any concurrent
writes to the stack are reflected. But `reflog_iterator_for_stack()`
always reloads the main stack, which is wrong.

Fix this and reload the correct stack.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/reftable-backend.c