dont set quotaFiles if mongodb_conf_quota is false

because  
quotaFiles   "number of files allowed per db, implies --quota"  
ef7f17be80/src/mongo/db/mongod_options.cpp (L223)
This commit is contained in:
ftao 2015-04-03 17:22:31 +08:00
parent 77736ceb7a
commit 631a97e4e4
1 changed files with 2 additions and 0 deletions

View File

@ -16,7 +16,9 @@ noscripting = {{ mongodb_conf_noscripting|to_nice_json }}
notablescan = {{ mongodb_conf_notablescan|to_nice_json }}
port = {{ mongodb_conf_port }}
quota = {{ mongodb_conf_quota|to_nice_json }}
{% if mongodb_conf_quota %}
quotaFiles = {{ mongodb_conf_quotaFiles }}
{% endif %}
syslog = {{ mongodb_conf_syslog|to_nice_json }}
smallfiles = {{ mongodb_conf_smallfiles|to_nice_json }}