diff options
author | Eric Wong <e@80x24.org> | 2022-04-05 08:18:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-04-05 21:58:31 +0000 |
commit | 961690bae47c90a4a6960952587c6f4463fb4b19 (patch) | |
tree | a682dbe8735f0e33fada028c8d5969b32257a63c /lib/PublicInbox/LEI.pm | |
parent | 5fb44bf4ffa9f2d4e82ca60859c99e32664ccc53 (diff) | |
download | public-inbox-961690bae47c90a4a6960952587c6f4463fb4b19.tar.gz |
This will make transparently upgrading from 1.7.0 -> 1.8.x easier. Only a single user has access to mail_sync.sqlite3, and R/W at the kernel-level is required for WAL, anyways.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r-- | lib/PublicInbox/LEI.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index 4e0295fa..a7ddc21f 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org> +# Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> # Backend for `lei' (local email interface). Unlike the C10K-oriented @@ -1502,11 +1502,11 @@ sub git_oid { } sub lms { - my ($lei, $rw) = @_; + my ($lei, $creat) = @_; my $sto = $lei->{sto} // _lei_store($lei) // return; require PublicInbox::LeiMailSync; my $f = "$sto->{priv_eidx}->{topdir}/mail_sync.sqlite3"; - (-f $f || $rw) ? PublicInbox::LeiMailSync->new($f) : undef; + (-f $f || $creat) ? PublicInbox::LeiMailSync->new($f) : undef; } sub sto_done_request { |