Xapian v1.2.21..v1.2.24 (inclusive) use OFD locks but failed to
set the close-on-exec flag on those locks. So we must continue
to work around those old versions by ensuring Xapian file
descriptors aren't held any longer than necessary when in
long-running git processes.
Reported-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
$self->{over}->rollback_lazy;
$self->{over}->disconnect;
+ $git->cleanup;
delete $self->{txn};
$xdb->cancel_transaction;
$xdb = _xdb_release($self);
}
}
$self->commit_txn_lazy;
+ $git->cleanup;
$xdb = _xdb_release($self);
# let another process do some work... <
if (!$newest) {
ok($im->remove($mime), 'remove message');
ok($im->add($mime), 'added message again');
$im->done;
-PublicInbox::SearchIdx->new($ibx, 1)->index_sync;
+for (1..2) {
+ eval { PublicInbox::SearchIdx->new($ibx, 1)->index_sync; };
+ is($@, '', 'no errors syncing');
+}
is(((stat("$ibx->{mainrepo}/public-inbox"))[2]) & 07777, 0755,
'sharedRepository respected for v1');
$mime->header_set('Subject', "subject = $i");
ok($v2w->add($mime), "add msg $i OK");
}
-$v2w->barrier;
+$v2w->done;
my %opts = (
LocalAddr => '127.0.0.1',