Git development
 help / color / mirror / Atom feed
* [JGIT PATCH (RESEND) 0/4] Fix race condition on loading pack files
@ 2009-08-12 19:45 Shawn O. Pearce
  2009-08-12 19:45 ` [JGIT PATCH (RESEND) 1/4] Avoid unnecessary stat when scanning packs in the objects directory Shawn O. Pearce
  0 siblings, 1 reply; 5+ messages in thread
From: Shawn O. Pearce @ 2009-08-12 19:45 UTC (permalink / raw)
  To: Robin Rosenberg; +Cc: git

I had sent this series while you were on vacation, so I assume it
just got lost in the shuffle and am resending.

This series tries to fix a "racy git" problem when reading pack
files in a repository; its possible that the directory is modified,
read and modified again in the same filesystem timestamp, resulting
in the reader not noticing the second modification.  This may cause
a reader to lose access to objects on disk.

Shawn O. Pearce (4):
  Avoid unnecessary stat when scanning packs in the objects directory
  Make ObjectDirectory last modified time atomically updated with list
  Don't create new pack lists if the directory hasn't changed
  Fix racy condition when a repository is repacked

 .../src/org/spearce/jgit/lib/ObjectDirectory.java  |  235 ++++++++++++-------
 1 files changed, 148 insertions(+), 87 deletions(-)

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

end of thread, other threads:[~2009-08-12 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-12 19:45 [JGIT PATCH (RESEND) 0/4] Fix race condition on loading pack files Shawn O. Pearce
2009-08-12 19:45 ` [JGIT PATCH (RESEND) 1/4] Avoid unnecessary stat when scanning packs in the objects directory Shawn O. Pearce
2009-08-12 19:45   ` [JGIT PATCH (RESEND) 2/4] Make ObjectDirectory last modified time atomically updated with list Shawn O. Pearce
2009-08-12 19:45     ` [JGIT PATCH (RESEND) 3/4] Don't create new pack lists if the directory hasn't changed Shawn O. Pearce
2009-08-12 19:45       ` [JGIT PATCH (RESEND) 4/4] Fix racy condition when a repository is repacked Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox