]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/V2Writable.pm
mm: min/max: return 0 instead of undef
[public-inbox.git] / lib / PublicInbox / V2Writable.pm
index afba02201f2d18cc4ef6c4454e4188fa2f772f8a..7bef1c89a21ef220933ff67bd9992cd72b7a1ab1 100644 (file)
@@ -1367,8 +1367,8 @@ sub index_sync {
 
                # xapian_only works incrementally w/o --reindex
                if ($seq && !$opt->{reindex}) {
-                       $art_beg = $sync->{mm_tmp}->max;
-                       $art_beg++ if defined($art_beg);
+                       $art_beg = $sync->{mm_tmp}->max || -1;
+                       $art_beg++;
                }
        }
        # work forwards through history