about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-21 08:29:25 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-22 00:12:43 +0000
commit2e5d47e4c02757c027461149b3e1568d713252b1 (patch)
tree3716730e94f8f9e5287650458d2c2146da2be140 /lib/PublicInbox/Inbox.pm
parent8e52e5fdea416d6fda0b8d301144af0c043a5a76 (diff)
downloadpublic-inbox-2e5d47e4c02757c027461149b3e1568d713252b1.tar.gz
This will be used to keep track of Message-ID <-> NNTP Article
numbers to prevent article number reuse when reindexing.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index b9cd4c40..f3070383 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -75,7 +75,7 @@ sub new {
         _set_uint($opts, 'feedmax', 25);
         $opts->{nntpserver} ||= $pi_config->{'publicinbox.nntpserver'};
         my $dir = $opts->{mainrepo};
-        if (defined $dir && -f "$dir/msgmap.sqlite3") { # XXX DIRTY
+        if (defined $dir && -f "$dir/inbox.lock") {
                 $opts->{version} = 2;
         }
         bless $opts, $class;