]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
searchidx: fix Xapian version comparison
authorEric Wong <e@80x24.org>
Mon, 6 May 2024 23:19:53 +0000 (23:19 +0000)
committerEric Wong <e@80x24.org>
Tue, 7 May 2024 06:11:04 +0000 (06:11 +0000)
We must use Perl v-strings consistently on both sides of the
comparison.  Fortunately, this was merely a no-op and didn't
cause any data integrity problems (aside from increased wear on
the storage device).

Fixes: c25c66af0a8a (searchidx: use vstring to improve readability, 2023-04-07)
lib/PublicInbox/SearchIdx.pm

index 1cbf6d235a16a53646c9cb04cc39d4a9d031f7d8..d3a7a0c0867af13fcdd7aeff10786360edd1bb49 100644 (file)
@@ -119,7 +119,7 @@ sub load_xapian_writable () {
        my $ver = eval 'v'.join('.', eval($xap.'::major_version()'),
                                eval($xap.'::minor_version()'),
                                eval($xap.'::revision()'));
-       if ($ver ge 1.4) { # new flags in Xapian 1.4
+       if ($ver ge v1.4) { # new flags in Xapian 1.4
                $DB_NO_SYNC = 0x4;
                $DB_DANGEROUS = 0x10;
        }