mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 19:31:14 +02:00
Remove useless if-test.
Coverity complained that this check is pointless, and it's right.
There is no case where we'd call ExecutorStart with a null plannedstmt,
and if we did, it'd have crashed before here. Thinko in commit cc415a56d
.
This commit is contained in:
parent
ee4a2c4a03
commit
3a2cb59887
@ -249,8 +249,6 @@ standard_ExecutorStart(QueryDesc *queryDesc, int eflags)
|
|||||||
estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot);
|
estate->es_crosscheck_snapshot = RegisterSnapshot(queryDesc->crosscheck_snapshot);
|
||||||
estate->es_top_eflags = eflags;
|
estate->es_top_eflags = eflags;
|
||||||
estate->es_instrument = queryDesc->instrument_options;
|
estate->es_instrument = queryDesc->instrument_options;
|
||||||
|
|
||||||
if (queryDesc->plannedstmt)
|
|
||||||
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
|
estate->es_jit_flags = queryDesc->plannedstmt->jitFlags;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user