tarantool / vshard

The new generation of sharding based on virtual buckets
Other
98 stars 29 forks source link

storage: fix _truncate blocking all deletions #405

Closed Gerold103 closed 1 year ago

Gerold103 commented 1 year ago

There is an on_replace trigger in _truncate space protecting from _bucket space clearance. The trigger wasn't ready to _truncate having deletions. It happens when any previously truncated space gets deleted.

As a result, _truncate didn't allow any deletions and its tuples were just staying permanently.

The patch makes the storage ignore _truncate deletions. They don't affect bucket rows anyway.

Fixes #400

NO_DOC=bugfix