Re: [PATCH 1/4] git-init-db should error out with a message

From: Junio C Hamano <junkio@cox.net>
Date: 2005-10-27 09:18:32
Alex Riesen <fork0@users.sourceforge.net> writes:

> I think the file ref version uses rename of HEAD.lock into HEAD, doesn't it?
> Rename(2) should just remove the symlink, right?

If everybody used symlink or if everybody used regular file
symref, we would catch this race and the second one will be
stopped.  My point was that by falling back we are introducing
this unnecessary race, which might be unimportant but still it
is a new race.

To avoid that, I think symlink version needs to honor the
HEAD.lock convention, which would slow down normal cases.


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Oct 27 09:19:09 2005

This archive was generated by hypermail 2.1.8 : 2005-10-27 09:19:12 EST