diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-26 23:02:13 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-02-28 23:05:30 +0000 |
commit | d493df537821cadd234d9d0e6e013b580c891d71 (patch) | |
tree | e7019e13bfc43cb6e247c415c7f0328a1687c632 /lib/PublicInbox | |
parent | 7f2e385977da3b8109c9e8fc97f8e182828cc3cf (diff) | |
download | public-inbox-d493df537821cadd234d9d0e6e013b580c891d71.tar.gz |
Make data passed via Storable to the skeleton worker a little neater.
Diffstat (limited to 'lib/PublicInbox')
-rw-r--r-- | lib/PublicInbox/SearchIdxPart.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdxPart.pm b/lib/PublicInbox/SearchIdxPart.pm index ee79e08e..477a4f97 100644 --- a/lib/PublicInbox/SearchIdxPart.pm +++ b/lib/PublicInbox/SearchIdxPart.pm @@ -59,7 +59,8 @@ sub partition_worker_loop ($$$) { my $n = read($r, my $msg, $len) or die "read: $!\n"; $n == $len or die "short read: $n != $len\n"; my $mime = PublicInbox::MIME->new(\$msg); - $self->add_message($mime, $len, $artnum, $object_id); + $artnum = int($artnum); + $self->add_message($mime, $n, $artnum, $object_id); } } warn "$$ still in transaction\n" if $txn; |