From: Karthik Nayak Date: Wed, 20 Mar 2024 22:14:10 GMT Subject: Re: [PATCH 03/15] reftable/stack: use error codes when locking fails during compaction Message-ID: In-Reply-To: Patrick Steinhardt writes: > diff --git a/reftable/stack.c b/reftable/stack.c > index eaa8bb9c99..ba15c48ddd 100644 > --- a/reftable/stack.c > +++ b/reftable/stack.c > @@ -1003,7 +1003,7 @@ static int stack_compact_range(struct reftable_stack *st, > LOCK_NO_DEREF); > if (err < 0) { > if (errno == EEXIST) > - err = 1; > + err = REFTABLE_LOCK_ERROR; > else > err = REFTABLE_IO_ERROR; > goto done; > The comment at the top of the function now needs to be re-written with this change.