user/dev discussion of public-inbox itself
 help / color / mirror / code / Atom feed
* [PATCH] extsearchidx: lock before writing multi-pack-index
@ 2021-06-30 22:00 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2021-06-30 22:00 UTC (permalink / raw)
  To: meta

This avoids errors from git in case -extindex gets invoked in
 lib/PublicInbox/ | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/PublicInbox/ b/lib/PublicInbox/
index e4eaf5be..ee43e6f8 100644
--- a/lib/PublicInbox/
+++ b/lib/PublicInbox/
@@ -1047,6 +1047,7 @@ sub idx_init { # similar to V2Writable
 	$git_midx and $self->with_umask(sub {
 		my @cmd = ('multi-pack-index');
 		push @cmd, '--no-progress' if ($opt->{quiet}//0) > 1;
+		my $lk = $self->lock_for_scope;
 		system('git', "--git-dir=$ALL", @cmd, 'write');
 		# ignore errors, fairly new command, may not exist

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-30 22:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-30 22:00 [PATCH] extsearchidx: lock before writing multi-pack-index Eric Wong

user/dev discussion of public-inbox itself

This inbox may be cloned and mirrored by anyone:

	git clone --mirror
	git clone --mirror http://czquwvybam4bgbro.onion/meta
	git clone --mirror http://hjrcffqmbrq6wope.onion/meta
	git clone --mirror http://ou63pmih66umazou.onion/meta

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 meta meta/ \
	public-inbox-index meta

Example config snippet for mirrors.
Newsgroups are available over NNTP:
 note: .onion URLs require Tor:

code repositories for project(s) associated with this inbox:

AGPL code for this site: git clone