git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix for mh/packed-ref-store-prep
@ 2017-06-12  8:06 Michael Haggerty
  2017-06-12  8:06 ` [PATCH 1/1] lock_packed_refs(): fix cache validity check Michael Haggerty
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Haggerty @ 2017-06-12  8:06 UTC (permalink / raw)
  To: Junio C Hamano
  Cc: Nguyễn Thái Ngọc Duy, Stefan Beller, Jeff King,
	Ævar Arnfjörð Bjarmason, David Turner,
	Brandon Williams, Johannes Sixt, git, Michael Haggerty

When preparing a new patch series, I noticed a bug that crept into
mh/packed-ref-store-prep while I was shuffling patches around. It
introduces a race condition if another process rewrites the
`packed-refs` file just before we lock it. See the commit message for
more information.

This patch applies on top of mh/packed-ref-store-prep and merges to
master without problems.

Michael

Michael Haggerty (1):
  lock_packed_refs(): fix cache validity check

 refs/files-backend.c | 32 +++++++++++++++++++++++---------
 1 file changed, 23 insertions(+), 9 deletions(-)

-- 
2.11.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-12 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12  8:06 [PATCH 0/1] Fix for mh/packed-ref-store-prep Michael Haggerty
2017-06-12  8:06 ` [PATCH 1/1] lock_packed_refs(): fix cache validity check Michael Haggerty
2017-06-12 18:21   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).