From 495cf373f4f8247391f44ebfd44fe03ddb0c1966 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 27 Jun 2020 10:03:27 +0000 Subject: inboxwritable: ensure ssoma.lock exists on init This will allow us to use InboxIdle on empty/unindexed v1 inboxes. --- lib/PublicInbox/InboxWritable.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PublicInbox/InboxWritable.pm b/lib/PublicInbox/InboxWritable.pm index f9e28502..9bdf8637 100644 --- a/lib/PublicInbox/InboxWritable.pm +++ b/lib/PublicInbox/InboxWritable.pm @@ -53,6 +53,9 @@ sub init_inbox { $mm->{dbh}->commit; }) if defined($skip_artnum); $sidx->commit_txn_lazy; + } else { + open my $fh, '>>', "$dir/ssoma.lock" or + die "$dir/ssoma.lock: $!\n"; } } else { my $v2w = importer($self); -- cgit v1.2.3-24-ge0c7