Skip to content

Commit

Permalink
fix: Exclude storage journal enabled for mongodb 7 or later
Browse files Browse the repository at this point in the history
  • Loading branch information
heryheming authored Oct 24, 2024
1 parent bf618cf commit 3a9cf70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/mongod.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ storage:
dbPath: {{ mongodb_storage_dbpath }}
directoryPerDB: {{ mongodb_storage_dirperdb | to_nice_json }}
engine: {{ mongodb_storage_engine }}
{% if mongodb_major_version is version("7.0", "<") -%}
journal:
enabled: {{ mongodb_storage_journal_enabled | to_nice_json }}
{% endif -%}
{% if mongodb_storage_engine == 'mmapv1' -%}
mmapv1:
quota:
Expand Down
2 changes: 2 additions & 0 deletions templates/mongod_init.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ storage:
dbPath: {{ mongodb_storage_dbpath }}
directoryPerDB: {{ mongodb_storage_dirperdb | to_nice_json }}
engine: {{ mongodb_storage_engine }}
{% if mongodb_major_version is version("7.0", "<") -%}
journal:
enabled: {{ mongodb_storage_journal_enabled | to_nice_json }}
{% endif -%}
{% if mongodb_storage_engine == 'mmapv1' -%}
mmapv1:
quota:
Expand Down

0 comments on commit 3a9cf70

Please sign in to comment.