There is an on-commit trigger in _bucket which updates bucket ref locks, collects unused bucket ref objects. But truncation won't run this trigger. Need to install a trigger on _truncate space which would catch when _bucket is truncated.
Truncation normally doesn't happen. But if it would be done manually by anybody, it might break the storage to some undefined state.
There is an on-commit trigger in _bucket which updates bucket ref locks, collects unused bucket ref objects. But truncation won't run this trigger. Need to install a trigger on
_truncate
space which would catch when_bucket
is truncated.Truncation normally doesn't happen. But if it would be done manually by anybody, it might break the storage to some undefined state.