mirror of https://gitee.com/bigwinds/arangodb
fix setting minimum number of v8 contexts (#3435)
This commit is contained in:
parent
af25c7941d
commit
9358cc0b8e
|
@ -104,10 +104,8 @@ class V8DealerFeature final : public application_features::ApplicationFeature {
|
|||
TRI_vocbase_t*);
|
||||
|
||||
void setMinimumContexts(size_t nr) {
|
||||
_nrMinContexts = nr;
|
||||
// max contexts must not be lower than min contexts
|
||||
if (_nrMinContexts > _nrMaxContexts) {
|
||||
_nrMaxContexts = nr;
|
||||
if (nr > _nrMinContexts) {
|
||||
_nrMinContexts = nr;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -151,7 +151,6 @@ function main(argv) {
|
|||
serverArgs["log.file"] = fs.join(tmpDataDir, "log");
|
||||
serverArgs["server.authentication"] = "false";
|
||||
serverArgs["server.endpoint"] = serverEndpoint;
|
||||
serverArgs["server.threads"] = "3";
|
||||
|
||||
print("================================================================================");
|
||||
print(ARANGOD);
|
||||
|
|
Loading…
Reference in New Issue