Commit 03aeb37a authored by Julien Muchembled's avatar Julien Muchembled

NEO: enable cksumvfs by default

This is not backward compatible: you'll need to either fix your DB
or disable explicitly.
parent 45c5abea
...@@ -30,7 +30,7 @@ md5sum = 9f27195d770b2f57461c60a82c851ab9 ...@@ -30,7 +30,7 @@ md5sum = 9f27195d770b2f57461c60a82c851ab9
[instance-neo] [instance-neo]
filename = instance-neo.cfg.in filename = instance-neo.cfg.in
md5sum = bc647a29f9d6ece2e4117ce8f04d27c5 md5sum = 9bfb9e94363d63b801b29e559b7a0c8d
[template-neo-my-cnf] [template-neo-my-cnf]
filename = my.cnf.in filename = my.cnf.in
......
...@@ -133,6 +133,15 @@ ...@@ -133,6 +133,15 @@
"description": "When enabled, sets synchronous = OFF and journal_mode = MEMORY - RTFM, those options are dangerous.", "description": "When enabled, sets synchronous = OFF and journal_mode = MEMORY - RTFM, those options are dangerous.",
"default": false, "default": false,
"type": "boolean" "type": "boolean"
},
"cksumvfs": {
"description": "See https://www.sqlite.org/cksumvfs.html. It can be safely disabled if the underlying storage layer is already checksumming, e.g. Btrfs (on this FS, you should also set journal_mode=TRUNCATE).",
"default": 1,
"type": "integer",
"enum": [
0,
1
]
} }
}, },
"additionalProperties": { "additionalProperties": {
......
...@@ -79,6 +79,9 @@ command = mysql ...@@ -79,6 +79,9 @@ command = mysql
{% elif storage_type == 'SQLite' -%} {% elif storage_type == 'SQLite' -%}
{% set extra_dict = slapparameter_dict.get('sqlite') or {} -%} {% set extra_dict = slapparameter_dict.get('sqlite') or {} -%}
{% if extra_dict.setdefault('cksumvfs', 1) == 0 -%}
{% do extra_dict.pop('cksumvfs') -%}
{% endif -%}
{% if extra_dict.pop('relaxed-writes', False) -%} {% if extra_dict.pop('relaxed-writes', False) -%}
{% do extra_dict.setdefault('synchronous', 'OFF') -%} {% do extra_dict.setdefault('synchronous', 'OFF') -%}
{% do extra_dict.setdefault('journal_mode', 'MEMORY') -%} {% do extra_dict.setdefault('journal_mode', 'MEMORY') -%}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment