From 47d21e78be57a8f4615be5872e08ec4539423d1f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 21 Mar 2021 15:50:45 +0600 Subject: lei import: vivify external-only messages Keyword storage for external-only messages was preventing messages from being explicitly imported. Teach lei_store to vivify keyword-only entries into fully-indexed messages on import. --- lib/PublicInbox/Over.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Over.pm') diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm index 587e0516..0e191c47 100644 --- a/lib/PublicInbox/Over.pm +++ b/lib/PublicInbox/Over.pm @@ -353,7 +353,7 @@ sub blob_exists { my ($self, $oidhex) = @_; if (wantarray) { my $sth = $self->dbh->prepare_cached(<<'', undef, 1); -SELECT docid FROM xref3 WHERE oidbin = ? +SELECT docid FROM xref3 WHERE oidbin = ? ORDER BY docid ASC $sth->bind_param(1, pack('H*', $oidhex), SQL_BLOB); $sth->execute; -- cgit v1.2.3-24-ge0c7