[PATCH] Remove stale comment and dead store in BuildTupleHashTable

Поиск
Список
Период
Сортировка
Искать

[PATCH] Remove stale comment and dead store in BuildTupleHashTable

От:
Tatsuya Kawata <kawatatatsuya0913@gmail.com>
Дата:
Вложения:
Hi,

While reading the aggregation-related executor code, I noticed a comment
that no longer matches what the code does.

In BuildTupleHashTable() (src/backend/executor/execGrouping.c) we have:

    hashtable->tableslot = NULL;    /* will be made on first lookup */

The slot is no longer made on first lookup.  Commit bf6c614a2f2 removed
the lazy creation from LookupTupleHashEntry() and made
BuildTupleHashTable() create the slot unconditionally, further down in
the same function.  Only the comment and its assignment were left behind.

The attached patch removes both.  Nothing reads tableslot before
slot is actually created.

Regards,
Tatsuya Kawata

FAQ