Commit 8fb133c2 authored by Julien Muchembled's avatar Julien Muchembled

NEO: add support for the --disable-pack option

parent 03aeb37a
...@@ -128,10 +128,6 @@ class Storage(NeoBaseRecipe): ...@@ -128,10 +128,6 @@ class Storage(NeoBaseRecipe):
engine = self.options.get('engine') engine = self.options.get('engine')
if engine: # old versions of NEO don't support -e if engine: # old versions of NEO don't support -e
r += '-e', engine r += '-e', engine
if self.options.get('dedup'):
r.append('--dedup')
if self.options.get('disable-drop-partitions'):
r.append('--disable-drop-partitions')
return r return r
class Admin(NeoBaseRecipe): class Admin(NeoBaseRecipe):
......
...@@ -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 = 9bfb9e94363d63b801b29e559b7a0c8d md5sum = 53b2c73a0c5c7cb5f6b841ba6892fa46
[template-neo-my-cnf] [template-neo-my-cnf]
filename = my.cnf.in filename = my.cnf.in
......
...@@ -110,6 +110,11 @@ ...@@ -110,6 +110,11 @@
"default": false, "default": false,
"type": "boolean" "type": "boolean"
}, },
"disable-pack": {
"description": "Set the --disable-pack option for storage nodes.",
"default": false,
"type": "boolean"
},
"private-tmpfs": { "private-tmpfs": {
"description": "Size of private tmpfs mount to store the database. See filesystems/tmpfs.txt in Linux documentation. Use only for testing.", "description": "Size of private tmpfs mount to store the database. See filesystems/tmpfs.txt in Linux documentation. Use only for testing.",
"type": "string" "type": "string"
......
...@@ -151,8 +151,16 @@ engine = ${my-cnf-parameters:engine} ...@@ -151,8 +151,16 @@ engine = ${my-cnf-parameters:engine}
environment = environment =
PATH={{sqlite3_location}}/bin PATH={{sqlite3_location}}/bin
{%- endif %} {%- endif %}
dedup = {{ dumps(bool(slapparameter_dict.get('data-deduplication'))) }} extra-options =
disable-drop-partitions = {{ dumps(bool(slapparameter_dict.get('disable-drop-partitions'))) }} {%- if slapparameter_dict.get('data-deduplication') %}
--dedup
{%- endif %}
{%- if slapparameter_dict.get('disable-drop-partitions') %}
--disable-drop-partitions
{%- endif %}
{%- if slapparameter_dict.get('disable-pack') %}
--disable-pack
{%- endif %}
{% for i in range(storage_count) -%} {% for i in range(storage_count) -%}
{% set storage_id = 'neo-storage-' ~ i -%} {% set storage_id = 'neo-storage-' ~ i -%}
......
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