reindex: Use thread count specified on command line
Index batch executor is not considering "--threads" flag on reindex
command. Instead it considers index.batchThreads property from config
if set or uses the available number of processors. Fix it to honor the
"--threads" command line option when provided.
Change-Id: Ia7d30b395305c102b3d21d6c848854e74d1932e9
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt
index aff17ca..749d4c2 100644
--- a/Documentation/config-gerrit.txt
+++ b/Documentation/config-gerrit.txt
@@ -2913,7 +2913,7 @@
[[index.batchThreads]]index.batchThreads::
+
Number of threads to use for indexing in background operations, such as
-online schema upgrades, and also for offline reindexing.
+online schema upgrades, and also the default for offline reindexing.
+
If not set or set to a zero, defaults to the number of logical CPUs as returned
by the JVM. If set to a negative value, defaults to a direct executor.