]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SearchIdx.pm
smsg: get rid of ->wrap initializer, too
[public-inbox.git] / lib / PublicInbox / SearchIdx.pm
index eb228e6bba7fc9089f1793c51a2370815d345c80..f10a9104e789fe82beae8e8a7b98d3ec9932f6c9 100644 (file)
@@ -484,7 +484,7 @@ sub remove_by_oid {
        for (; $head != $tail; $head++) {
                my $docid = $head->get_docid;
                my $doc = $db->get_document($docid);
-               my $smsg = PublicInbox::Smsg->wrap($mid);
+               my $smsg = bless { mid => $mid }, 'PublicInbox::Smsg';
                $smsg->load_expand($doc);
                if ($smsg->{blob} eq $oid) {
                        push(@delete, $docid);