Skip to content

Commit

Permalink
Misc typo fixes and cosmetic cleanup in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hlinnaka committed May 6, 2024
1 parent 9c124d9 commit 222cb75
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/pg_tracing.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Generate spans for distributed tracing from SQL query
*
* Spans will only be generated for sampled queries. A query is sampled if:
* - It has a tracecontext propagated throught SQLCommenter and it passes the
* - It has a tracecontext propagated through SQLCommenter and it passes the
* caller_sample_rate.
* - It has no SQLCommenter but the query randomly passes the global sample_rate
*
Expand Down
7 changes: 4 additions & 3 deletions src/pg_tracing_query_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@
* pg_tracing query processing functions.
*
* IDENTIFICATION
* contrib/pg_tracing/pg_tracing_explain.c
* src/pg_tracing_explain.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"

#include <sys/stat.h>
#include <unistd.h>

#include "nodes/extensible.h"
#include "parser/scanner.h"
#include "pg_tracing.h"
#include "nodes/extensible.h"

/*
* Check if we have a comment that could store SQLComment information at the
Expand All @@ -37,7 +38,7 @@ has_possible_sql_comment(const char *query)
if (query_len < 55 + 13 + 4)
return -1;

/* Check if we have comment at the begining */
/* Check if we have comment at the beginning */
if (query[0] == '/' && query[1] == '*')
return 0;

Expand Down
4 changes: 2 additions & 2 deletions src/pg_tracing_span.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* pg_tracing span functions.
*
* IDENTIFICATION
* contrib/pg_tracing/pg_tracing_span.c
* src/pg_tracing_span.c
*
*-------------------------------------------------------------------------
*/
#include "postgres.h"

#include "common/pg_prng.h"
#include "nodes/extensible.h"
#include "pg_tracing.h"
#include "common/pg_prng.h"

/*
* Convert a node CmdType to the matching SpanType
Expand Down

0 comments on commit 222cb75

Please sign in to comment.