git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[JGIT PATCH (RESEND) 0/4] Fix race condition on loading pack files

From
Shawn O. Pearce <spearce@spearce.org>
Date
Aug 12, 2009, 19:45 UTC
Message-ID
<1250106323-19408-1-git-send-email-spearce@spearce.org>

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(-)
Next: Shawn O. Pearce
Message 1 of 5 in “Fix race condition on loading pack files”
  1. 0/4 Fix race condition on loading pack filesShawn O. Pearce, Aug 12, 2009
  2. 1/4 Avoid unnecessary stat when scanning packs in the objects directoryShawn O. Pearce, Aug 12, 2009
  3. 2/4 Make ObjectDirectory last modified time atomically updated with listShawn O. Pearce, Aug 12, 2009
  4. 3/4 Don't create new pack lists if the directory hasn't changedShawn O. Pearce, Aug 12, 2009
  5. 4/4 Fix racy condition when a repository is repackedShawn O. Pearce, Aug 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.