about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index 17e202e1..dd6d3710 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -253,7 +253,7 @@ sub cleanup_shards {
         my $nr = grep(/\A[0-9]+\z/, readdir($dh)) or
                 return warn("$xpfx has no shards\n"); # true
         return reopen($self) if $nr == ($self->{nshard} // -1);
-        delete($self->{xdb});
+        delete @$self{qw(xdb qp)};
         undef;
 }