about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-16 23:19:06 +0000
committerEric Wong <e@80x24.org>2020-12-17 19:41:16 +0000
commitf85de9d78561efa8190ac038823fef397b6df4fc (patch)
treebcd9e6da7bba64155e4053213cd1b1b2423d7023 /lib
parentd7f85ee273e546f9cd822aa631d52e2f7a594e16 (diff)
downloadpublic-inbox-f85de9d78561efa8190ac038823fef397b6df4fc.tar.gz
extindex treats v1/v2 public inboxes as read-only, so there's
no need to scare people by using the InboxWritable package
now that ->git_dir_n is gone and we can use ->max_git_epoch
instead of ->git_dir_latest.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/ExtSearchIdx.pm2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/PublicInbox/ExtSearchIdx.pm b/lib/PublicInbox/ExtSearchIdx.pm
index 3764612c..c6fb398b 100644
--- a/lib/PublicInbox/ExtSearchIdx.pm
+++ b/lib/PublicInbox/ExtSearchIdx.pm
@@ -63,7 +63,6 @@ sub new {
 
 sub attach_inbox {
         my ($self, $ibx) = @_;
-        $ibx = PublicInbox::InboxWritable->new($ibx);
         my $key = $ibx->eidx_key;
         if (!$ibx->over || !$ibx->mm) {
                 warn "W: skipping $key (unindexed)\n";
@@ -78,7 +77,6 @@ sub attach_inbox {
                 warn "W: `$ibx->{inboxdir}' canonicalized to `$ibxdir'\n";
                 $ibx->{inboxdir} = $ibxdir;
         }
-        $ibx = PublicInbox::InboxWritable->new($ibx);
         $self->{ibx_map}->{$key} //= do {
                 push @{$self->{ibx_list}}, $ibx;
                 $ibx;