mako: add comments
This commit is contained in:
parent
df0999bee2
commit
e2913b5b3d
|
@ -1573,6 +1573,8 @@ int Arguments::validate() {
|
|||
logr.error("--num_databases ({}) must be >= number of clusters({})", num_databases, num_fdb_clusters);
|
||||
return -1;
|
||||
}
|
||||
// In sync mode, threads, and in async mode, async workers are assigned to databases. Having more databases than
|
||||
// threads or async workers leads to unused databases.
|
||||
if (async_xacts == 0 && num_threads < num_databases) {
|
||||
logr.error("--threads ({}) must be >= number of databases ({}) in sync mode", num_threads, num_databases);
|
||||
return -1;
|
||||
|
@ -1581,6 +1583,7 @@ int Arguments::validate() {
|
|||
logr.error("--async_xacts ({}) must be >= number of databases ({}) in async mode", async_xacts, num_databases);
|
||||
return -1;
|
||||
}
|
||||
// Having more threads than async workers in the async mode does lead to unused threads.
|
||||
if (async_xacts > 0 && num_threads > async_xacts) {
|
||||
logr.error("--threads ({}) must be <= --async_xacts", num_threads);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue