Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/backend/utils/adt/age_global_graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ static List *get_ag_labels_names(Snapshot snapshot, Oid graph_oid,
F_CHAREQ, CharGetDatum(label_type));

/* setup the table to be scanned, ag_label in this case */
ag_label = table_open(ag_label_relation_id(), ShareLock);
ag_label = table_open(ag_label_relation_id(), AccessShareLock);
scan_desc = table_beginscan(ag_label, snapshot, 2, scan_keys);

/* get the tupdesc - we don't need to release this one */
Expand All @@ -241,7 +241,7 @@ static List *get_ag_labels_names(Snapshot snapshot, Oid graph_oid,

/* close up scan */
table_endscan(scan_desc);
table_close(ag_label, ShareLock);
table_close(ag_label, AccessShareLock);

return labels;
}
Expand Down Expand Up @@ -493,7 +493,7 @@ static void load_vertex_hashtable(GRAPH_global_context *ggctx)
vertex_label_table_oid = get_relname_relid(vertex_label_name,
graph_namespace_oid);
/* open the relation (table) and begin the scan */
graph_vertex_label = table_open(vertex_label_table_oid, ShareLock);
graph_vertex_label = table_open(vertex_label_table_oid, AccessShareLock);
scan_desc = table_beginscan(graph_vertex_label, snapshot, 0, NULL);
/* get the tupdesc - we don't need to release this one */
tupdesc = RelationGetDescr(graph_vertex_label);
Expand Down Expand Up @@ -544,7 +544,7 @@ static void load_vertex_hashtable(GRAPH_global_context *ggctx)

/* end the scan and close the relation */
table_endscan(scan_desc);
table_close(graph_vertex_label, ShareLock);
table_close(graph_vertex_label, AccessShareLock);
}
}

Expand Down Expand Up @@ -601,7 +601,7 @@ static void load_edge_hashtable(GRAPH_global_context *ggctx)
edge_label_table_oid = get_relname_relid(edge_label_name,
graph_namespace_oid);
/* open the relation (table) and begin the scan */
graph_edge_label = table_open(edge_label_table_oid, ShareLock);
graph_edge_label = table_open(edge_label_table_oid, AccessShareLock);
scan_desc = table_beginscan(graph_edge_label, snapshot, 0, NULL);
/* get the tupdesc - we don't need to release this one */
tupdesc = RelationGetDescr(graph_edge_label);
Expand Down Expand Up @@ -678,7 +678,7 @@ static void load_edge_hashtable(GRAPH_global_context *ggctx)

/* end the scan and close the relation */
table_endscan(scan_desc);
table_close(graph_edge_label, ShareLock);
table_close(graph_edge_label, AccessShareLock);
}
}

Expand Down