mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
post-fixes for TRUNCATE
* fix the truncate-by-handler variant, used by InnoDB * test that insert works after truncate, meaning graph table was emptied * test that the vector index size is zero after truncate in MyISAM
This commit is contained in:
@@ -9952,11 +9952,11 @@ int TABLE::hlindexes_on_delete(const uchar *buf)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int TABLE::hlindexes_on_delete_all()
|
||||
int TABLE::hlindexes_on_delete_all(bool truncate)
|
||||
{
|
||||
DBUG_ASSERT(s->hlindexes() == (hlindex != NULL));
|
||||
if (hlindex && hlindex->in_use)
|
||||
if (int err= mhnsw_delete_all(this, key_info + s->keys))
|
||||
if (int err= mhnsw_delete_all(this, key_info + s->keys, truncate))
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user