Skip to content

Commit

Permalink
Remove unused fields in Span struct
Browse files Browse the repository at this point in the history
  • Loading branch information
bonnefoa committed Sep 16, 2024
1 parent 0515706 commit bf7efa7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
3 changes: 0 additions & 3 deletions src/pg_tracing.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,6 @@ typedef struct Span
SpanType type; /* Type of the span. Used to generate the
* span's name */

bool parallel_aware;
bool async_capable;

int8 nested_level; /* Nested level of this span this span.
* Internal usage only */
int8 parent_planstate_index; /* Index to the parent planstate of
Expand Down
3 changes: 0 additions & 3 deletions src/pg_tracing_planstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,6 @@ create_span_node(PlanState *planstate, const planstateTraceContext * planstateTr
const char *operation_name;
int len_operation_name;

span.parallel_aware = plan->parallel_aware;
span.async_capable = plan->async_capable;

operation_name = plan_to_rel_name(planstateTraceContext, planstate);
len_operation_name = strlen(operation_name);
if (len_operation_name > 0)
Expand Down
2 changes: 0 additions & 2 deletions src/pg_tracing_span.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ begin_span(TraceId trace_id, Span * span, SpanType type,
else
span->span_id = pg_prng_uint64(&pg_global_prng_state);

span->parallel_aware = false;
span->async_capable = false;
span->worker_id = -1;
span->operation_name_offset = -1;
span->num_parameters = 0;
Expand Down

0 comments on commit bf7efa7

Please sign in to comment.