]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/ExtSearchIdx.pm
extsearchidx: ck_existing: set $OID for warning context
[public-inbox.git] / lib / PublicInbox / ExtSearchIdx.pm
index c06b25a929bff8c35834fb9b5571033f4bcf6ab1..11f7786def257155329ab9f113136b9868f4dd1f 100644 (file)
@@ -125,7 +125,7 @@ sub do_xpost ($$) {
        if (my $new_smsg = $req->{new_smsg}) { # 'm' on cross-posted message
                my $xnum = $req->{xnum};
                $self->{oidx}->add_xref3($docid, $xnum, $oid, $eidx_key);
-               $idx->shard_add_eidx_info($docid, $xibx, $eml);
+               $idx->shard_add_eidx_info($docid, $eidx_key, $eml);
                check_batch_limit($req);
        } else { # 'd'
                my $rm_eidx_info;
@@ -222,6 +222,8 @@ sub ck_existing { # git->cat_async callback
        if ($type eq 'missing') {
                _blob_missing($req);
        } elsif (!is_bad_blob($oid, $type, $size, $smsg->{blob})) {
+               my $self = $req->{self} // die 'BUG: {self} missing';
+               local $self->{current_info} = "$self->{current_info} $oid";
                my $cur = PublicInbox::Eml->new($bref);
                if (content_hash($cur) eq $req->{chash}) {
                        push @{$req->{indexed}}, $smsg; # for do_xpost