]> Sergey Matveev's repositories - public-inbox.git/commitdiff
search: load_xapian: return true on success
authorEric Wong <e@80x24.org>
Sun, 29 Dec 2019 12:49:55 +0000 (12:49 +0000)
committerEric Wong <e@80x24.org>
Sun, 29 Dec 2019 12:50:13 +0000 (12:50 +0000)
This was causing -xcpdb and other admin modules to fail
outside of tests (or when testing with the slow TEST_RUN_MODE=0).

lib/PublicInbox/Search.pm

index eb1a1446b6f10f4552431f99253d87f2608f06be..f897b833bc9b3ad03d82fa99f8cf533c37efd599 100644 (file)
@@ -49,7 +49,7 @@ sub load_xapian () {
                # or make indexlevel=medium as default
                $QP_FLAGS = FLAG_PHRASE() | FLAG_BOOLEAN() | FLAG_LOVEHATE() |
                                FLAG_WILDCARD();
-               last;
+               return 1;
        }
        undef;
 }