about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStoreErr.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-11-02 09:35:27 +0000
committerEric Wong <e@80x24.org>2023-11-02 23:46:53 +0000
commit52cd1dd47c83f18681bab081db5041f8bfa5dfbe (patch)
treede349eef74f5db9ae493fdc9bd70abfa3d2fb89e /lib/PublicInbox/LeiStoreErr.pm
parentaa8a5b0d3de5304aa56c53fd2f6717be9a44f559 (diff)
downloadpublic-inbox-52cd1dd47c83f18681bab081db5041f8bfa5dfbe.tar.gz
FDs are array indices into the kernel, anyways, so we can
take advantage of space savings and speedups because the
majority of FDs a big process has is going to end up in
the array, anyways.
Diffstat (limited to 'lib/PublicInbox/LeiStoreErr.pm')
-rw-r--r--lib/PublicInbox/LeiStoreErr.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiStoreErr.pm b/lib/PublicInbox/LeiStoreErr.pm
index fe4af51e..c8bc72b6 100644
--- a/lib/PublicInbox/LeiStoreErr.pm
+++ b/lib/PublicInbox/LeiStoreErr.pm
@@ -47,7 +47,7 @@ sub event_step {
         return ($!{EAGAIN} ? 0 : $self->close) if !defined($n);
         return $self->close if !$n;
         my $printed;
-        for my $lei (values %PublicInbox::DS::DescriptorMap) {
+        for my $lei (grep defined, @PublicInbox::DS::FD_MAP) {
                 my $cb = $lei->can('store_path') // next;
                 next if $cb->($lei) ne $self->{store_path};
                 emit($lei->{2} // next, $buf) and $printed = 1;