Thread (1 message) 1 message, 1 author, 2017-10-02

Re: [PATCH 11/11] read-cache: roll back lock on error with `COMMIT_LOCK`

From: Junio C Hamano <hidden>
Date: 2017-10-02 04:01:54

Martin Ågren [off-list ref] writes:
Teach `write_locked_index(..., COMMIT_LOCK)` to roll back the lock
before returning. If we have already succeeded and committed, it will be
a noop. Simplify the existing callers where we now have a superfluous
call to `rollback_lockfile()`. This should keep future readers from
wondering why the callers are inconsistent.
Makes sense.  Thanks for cleaning up.  The split-index codepath was
something I've never reviewed seriously with fine toothed comb, and
I feel a lot better now knowing that somebody other than its authors
and me have read it through ;-)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help