From: Patrick Steinhardt Date: Mon, 25 Mar 2024 09:10:31 GMT Subject: Re: [PATCH 03/15] reftable/stack: use error codes when locking fails during compaction Message-ID: In-Reply-To: On Wed, Mar 20, 2024 at 03:14:10PM -0700, Karthik Nayak wrote: > 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. Good catch, will fix. Patrick