Commit 22eaa437 authored by Julien Muchembled's avatar Julien Muchembled

storage: add an assertion to check that --disable-pack works

We had a case of a backup cluster that packed whereas --disable-pack
was passed. In fact, for some reasons, we had to hack to pass the
option so things aren't clear.
parent fb47eeec
......@@ -417,6 +417,7 @@ class BackgroundWorker(object):
with self._maybeResume(app):
parts.update(offset_list)
if parts:
assert not app.disable_pack, (info, packed, parts)
if info:
pack_id, approved, partial, oids, tid = info
self._pack_info = (pack_id, approved, partial,
......
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