]> Sergey Matveev's repositories - public-inbox.git/commit
xapcmd: use popen_rd for running xapian-compact
authorEric Wong <e@yhbt.net>
Sat, 11 Jan 2020 22:35:00 +0000 (22:35 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jan 2020 04:36:44 +0000 (04:36 +0000)
commitd4e33279556d7eed492f4e3ba0deade9a31b4aeb
treecf3a8179173eeb08da48c19caafd4f00062bab90
parentb7c0114745e5b11f5606c43c391b2417779cbdf3
xapcmd: use popen_rd for running xapian-compact

public-inbox-compact wrapper displays progress by default,
anyways, and there's not a lot of output, so simplify our
code by using popen_rd instead of spawn + optional pipe.

While we're at it use "while (<HANDLE>)" to display
progress as it happens, since "foreach (<$HANDLE>)"
slurps the contents into an array, first.
lib/PublicInbox/Xapcmd.pm