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

[PATCH v2 0/2] Retry attempts to acquire the packed-refs lock

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
May 11, 2015, 10:35 UTC
Message-ID
<1431340526-24288-1-git-send-email-mhagger@alum.mit.edu>

This is a re-roll of [1]. The only change is the addition of a "wait" in the test to avoid an unlikely race between the lockfile-removing subprocess and the attempt by the outer layer of the test to delete the test directory.

Thanks to Hannes, Stefan, and Peff for their comments about v1.
Michael
[1] http://thread.gmane.org/gmane.comp.version-control.git/268137
Michael Haggerty (2):
  lockfile: allow file locking to be retried with a timeout
  lock_packed_refs(): allow retries when acquiring the packed-refs lock
 Documentation/config.txt |  6 ++++
 lockfile.c               | 79 ++++++++++++++++++++++++++++++++++++++++++++++--
 lockfile.h               | 16 ++++++++--
 refs.c                   | 12 +++++++-
 t/t3210-pack-refs.sh     | 17 +++++++++++
 5 files changed, 125 insertions(+), 5 deletions(-)
-- 
2.1.4
Next: Michael Haggerty
Message 1 of 3 in “Retry attempts to acquire the packed-refs lock”
  1. 0/2 Retry attempts to acquire the packed-refs lockMichael Haggerty, May 11, 2015
  2. 1/2 lockfile: allow file locking to be retried with a timeoutMichael Haggerty, May 11, 2015
  3. 2/2 lock_packed_refs(): allow retries when acquiring the packed-refs lockMichael Haggerty, May 11, 2015

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.