"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Stefan Sperling <stsp@stsp.name>
Subject:
Re: got patch: lock the worktree
To:
Omar Polo <op@omarpolo.com>
Cc:
gameoftrees@openbsd.org
Date:
Wed, 14 Aug 2024 15:43:26 +0200

Download raw body.

Thread
On Wed, Aug 14, 2024 at 03:38:23PM +0200, Omar Polo wrote:
> noticed while working on the path_info() stuff.  we should definitely
> lock exclusively the worktree since we may update the fileindex.
> The way the fileindex is written (temp file + rename) is safe against
> concurrent modifications, but could still mean that another concurrent
> write operation could interfer with a patch operation.
> 
> it's not a new thing, i believe it's there since i wrote got patch :/

ok