about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiXSearch.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-10-17 23:38:02 +0000
committerEric Wong <e@80x24.org>2023-10-18 20:50:32 +0000
commit48aca3659c248c936a978a8338cf19aacc9483a1 (patch)
treef58abcee6960e6f479f79f5d03f57469d479d0ac /lib/PublicInbox/LeiXSearch.pm
parent5406e15b4de72644e4bedb73029c94cad7af5d0a (diff)
downloadpublic-inbox-48aca3659c248c936a978a8338cf19aacc9483a1.tar.gz
We use this in various places to minimize or maximize pipe
size on Linux.  So keep it all in one place.
Diffstat (limited to 'lib/PublicInbox/LeiXSearch.pm')
-rw-r--r--lib/PublicInbox/LeiXSearch.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiXSearch.pm b/lib/PublicInbox/LeiXSearch.pm
index d83a403c..25b66b3b 100644
--- a/lib/PublicInbox/LeiXSearch.pm
+++ b/lib/PublicInbox/LeiXSearch.pm
@@ -21,6 +21,7 @@ use Fcntl qw(SEEK_SET F_SETFL O_APPEND O_RDWR);
 use PublicInbox::ContentHash qw(git_sha);
 use POSIX qw(strftime);
 use autodie qw(open read seek truncate);
+use PublicInbox::Syscall qw($F_SETPIPE_SZ);
 
 sub new {
         my ($class) = @_;
@@ -536,7 +537,6 @@ sub do_query {
                 if ($lei->{opt}->{augment} && delete $lei->{early_mua}) {
                         $lei->start_mua;
                 }
-                my $F_SETPIPE_SZ = $^O eq 'linux' ? 1031 : undef;
                 if ($l2m->{-wq_nr_workers} > 1 &&
                                 $l2m->{base_type} =~ /\A(?:maildir|mbox)\z/) {
                         # setup two barriers to coordinate ->has_entries