Skip to content
Snippets Groups Projects
Commit 14967bd8 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Konstantin Osipov
Browse files

box: remove useless region_truncate from box_{space,index}_id_by_name

region_truncate() is not required there as box_index_get() cleans up
fiber()->gc anyway - see txn_commit_ro_stmt(). Actually, it's even
dangerous: if fiber_gc() called by box_index_get() happens to free
memory, region_truncate() will crash on the assertion:

  region_truncate: Assertion `region_used(region) >= used' failed.
parent 5841a61e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment