Skip to content

Commit a1954d1

Browse files
committed
Remove dead code when handling return from pgsm_get_entry_for_query()
As pgsm_get_entry_for_query() can never return NULL we should not try to handle that.
1 parent cc2dd60 commit a1954d1

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/pg_stat_monitor.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,6 @@ pgsm_ExecutorEnd(QueryDesc *queryDesc)
707707
SysInfo sys_info;
708708

709709
entry = pgsm_get_entry_for_query(queryId, plan_ptr, queryDesc->sourceText, queryDesc->operation);
710-
if (!entry)
711-
{
712-
elog(DEBUG2, "[pg_stat_monitor] pgsm_ExecutorEnd: Failed to find entry for [" INT64_FORMAT "] %s.", queryId, queryDesc->sourceText);
713-
return;
714-
}
715710

716711
if (entry->key.planid == 0)
717712
entry->key.planid = plan_ptr ? plan_ptr->planid : 0;

0 commit comments

Comments
 (0)