about summary refs log tree commit homepage
path: root/lib/PublicInbox/V2Writable.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-11-27 09:52:45 +0000
committerEric Wong <e@80x24.org>2020-11-28 04:53:14 +0000
commitac43c3b17f452b02edf1cce3632a433e998de5ca (patch)
treeddb44342dd894fdfe757c816cb24615247af34bb /lib/PublicInbox/V2Writable.pm
parentfb7d0067dc55fa8336dab96c07807fc7b28a1b20 (diff)
downloadpublic-inbox-ac43c3b17f452b02edf1cce3632a433e998de5ca.tar.gz
This simplifies callers and allows empty newsgroups to be
represented (the WWW UI may be insufficient there, too).
Diffstat (limited to 'lib/PublicInbox/V2Writable.pm')
-rw-r--r--lib/PublicInbox/V2Writable.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/V2Writable.pm b/lib/PublicInbox/V2Writable.pm
index afba0220..7bef1c89 100644
--- a/lib/PublicInbox/V2Writable.pm
+++ b/lib/PublicInbox/V2Writable.pm
@@ -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