Skip to content

Commit

Permalink
Remove lc NULL check
Browse files Browse the repository at this point in the history
  • Loading branch information
timchang514 committed Oct 19, 2023
1 parent 1656469 commit 07c28e5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/backend/utils/misc/queryenvironment.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,21 +878,15 @@ static bool _ENR_tuple_operation(Relation catalog_rel, HeapTuple tup, ENRTupleOp
CacheInvalidateHeapTuple(catalog_rel, newtup, NULL);
break;
case ENR_OP_UPDATE:
if (lc)
{
oldtup = lfirst(lc);
lfirst(lc) = heap_copytuple(tup);
CacheInvalidateHeapTuple(catalog_rel, oldtup, tup);
}
break;
case ENR_OP_DROP:
if (lc)
{
tmp = lfirst(lc);
*list_ptr = list_delete_ptr(*list_ptr, tmp);
CacheInvalidateHeapTuple(catalog_rel, tup, NULL);
heap_freetuple(tmp);
}
break;
default:
break;
Expand Down

0 comments on commit 07c28e5

Please sign in to comment.