From: Michael Haggerty <mhagger@alum.mit.edu>
To: Junio C Hamano <gitster@pobox.com>
Cc: Stefan Beller <sbeller@google.com>, Jeff King <peff@peff.net>,
Johannes Sixt <j6t@kdbg.org>,
git@vger.kernel.org, Michael Haggerty <mhagger@alum.mit.edu>
Subject: [PATCH v2 0/2] Retry attempts to acquire the packed-refs lock
Date: Mon, 11 May 2015 12:35:24 +0200 [thread overview]
Message-ID: <1431340526-24288-1-git-send-email-mhagger@alum.mit.edu> (raw)
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 reply other threads:[~2015-05-11 10:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-11 10:35 Michael Haggerty [this message]
2015-05-11 10:35 ` [PATCH v2 1/2] lockfile: allow file locking to be retried with a timeout Michael Haggerty
2015-05-11 10:35 ` [PATCH v2 2/2] lock_packed_refs(): allow retries when acquiring the packed-refs lock Michael Haggerty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431340526-24288-1-git-send-email-mhagger@alum.mit.edu \
--to=mhagger@alum.mit.edu \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=peff@peff.net \
--cc=sbeller@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).