about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-10-25 08:59:19 +0000
committerEric Wong <e@80x24.org>2021-10-25 19:32:00 +0000
commit2833f2adeb224a83d731deaa717e1969e5bf9e62 (patch)
treebf565dd24d59040a9064ce8b95736e4a94e1d660 /lib/PublicInbox/LeiStore.pm
parent21c66c3ac2a355a600325a69a345a33ad5c7320f (diff)
downloadpublic-inbox-2833f2adeb224a83d731deaa717e1969e5bf9e62.tar.gz
No need to go through the lei/store process when we write
mail_sync.sqlite3.  This ought to reduce ENOBUFS errors (and the
sleep workaround) on RAM-starved systems.
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r--lib/PublicInbox/LeiStore.pm7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index f1316229..66049dfe 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -265,11 +265,6 @@ sub _lms_rw ($) { # it is important to have eidx processes open before lms
         };
 }
 
-sub set_sync_info {
-        my ($self, $oidhex, $folder, $id) = @_;
-        _lms_rw($self)->set_src(pack('H*', $oidhex), $folder, $id);
-}
-
 sub _remove_if_local { # git->cat_async arg
         my ($bref, $oidhex, $type, $size, $self) = @_;
         $self->{im}->remove($bref) if $bref;
@@ -349,7 +344,7 @@ sub add_eml {
         $smsg->{-eidx_git} = $eidx->git if !$self->{-fake_im};
         my $im_mark = $im->add($eml, undef, $smsg);
         if ($vmd && $vmd->{sync_info}) {
-                set_sync_info($self, $smsg->{blob}, @{$vmd->{sync_info}});
+                _lms_rw($self)->set_src($smsg->oidbin, @{$vmd->{sync_info}});
         }
         unless ($im_mark) { # duplicate blob returns undef
                 return unless wantarray;