Skip to content

Commit

Permalink
If p_current_oid is NULL OID, try to set heap scanner's current OID
Browse files Browse the repository at this point in the history
  • Loading branch information
hgryoo committed Dec 12, 2024
1 parent bffb701 commit addeaca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/query/scan_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -5321,6 +5321,11 @@ scan_next_heap_scan (THREAD_ENTRY * thread_p, SCAN_ID * scan_id)
/* evaluate the predicates to see if the object qualifies */
scan_id->scan_stats.read_rows++;

if (OID_ISNULL (p_current_oid))
{
COPY_OID (p_current_oid, &hsidp->curr_oid);
}

ev_res = eval_data_filter (thread_p, p_current_oid, &recdes, &hsidp->scan_cache, &data_filter);
if (ev_res == V_ERROR)
{
Expand Down

0 comments on commit addeaca

Please sign in to comment.