]> Sergey Matveev's repositories - public-inbox.git/commit
v2writable: do not clobber {shards} or {parallel} if unset
authorEric Wong <e@yhbt.net>
Sun, 2 Feb 2020 06:52:16 +0000 (06:52 +0000)
committerEric Wong <e@yhbt.net>
Sun, 2 Feb 2020 17:29:51 +0000 (17:29 +0000)
commit45e2c97624268da5e030ac3e4c033e6022b8c0de
treed120464f74712041536a7099d68b6b72c5e8df63
parent2710d3105e70ff467eff9e977325628b4e9dd1c5
v2writable: do not clobber {shards} or {parallel} if unset

The $jobs parameter in `public-inbox-convert' is passed to
V2Writable->init_inbox as `undef' by default, causing
parallelization to be disabled.

Instead, leave the underlying {parallel} flag untouched if
$shards is undef and do not clobber the default shard count.

This allows us to take advantage of multicore systems when
running public-inbox-convert with no command-line switches.
lib/PublicInbox/V2Writable.pm