diff options
author | Eric Wong <e@yhbt.net> | 2020-06-27 10:03:27 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-06-28 22:27:06 +0000 |
commit | 495cf373f4f8247391f44ebfd44fe03ddb0c1966 (patch) | |
tree | 74cc92f49b168490b06deeef4248a5fd3e6a288b /lib/PublicInbox | |
parent | 52e37476e8e62e8e54104d9a2abcf2a86d1d1a32 (diff) | |
download | public-inbox-495cf373f4f8247391f44ebfd44fe03ddb0c1966.tar.gz |
This will allow us to use InboxIdle on empty/unindexed v1 inboxes.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/InboxWritable.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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); |