mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 14:46:56 +08:00
Restored previous behavior and added comment
This commit is contained in:
@@ -146,8 +146,10 @@ ivfflatvacuumcleanup(IndexVacuumInfo *info, IndexBulkDeleteResult *stats)
|
|||||||
if (info->analyze_only)
|
if (info->analyze_only)
|
||||||
return stats;
|
return stats;
|
||||||
|
|
||||||
|
/* stats is NULL if ambulkdelete not called */
|
||||||
|
/* OK to return NULL if index not changed */
|
||||||
if (stats == NULL)
|
if (stats == NULL)
|
||||||
stats = (IndexBulkDeleteResult *) palloc0(sizeof(IndexBulkDeleteResult));
|
return NULL;
|
||||||
|
|
||||||
stats->num_pages = RelationGetNumberOfBlocks(rel);
|
stats->num_pages = RelationGetNumberOfBlocks(rel);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user