Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
fdbd728a
Commit
fdbd728a
authored
9 years ago
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Rename constants
parent
64f32dc7
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/grpc/grpc.h
+7
-6
7 additions, 6 deletions
include/grpc/grpc.h
src/core/surface/call.c
+3
-3
3 additions, 3 deletions
src/core/surface/call.c
with
10 additions
and
9 deletions
include/grpc/grpc.h
+
7
−
6
View file @
fdbd728a
...
@@ -358,8 +358,9 @@ typedef struct grpc_op {
...
@@ -358,8 +358,9 @@ typedef struct grpc_op {
/** Propagate deadline */
/** Propagate deadline */
#define GRPC_PROPAGATE_DEADLINE ((gpr_uint32)1)
#define GRPC_PROPAGATE_DEADLINE ((gpr_uint32)1)
/** Propagate census context */
/** Propagate census context */
#define GRPC_PROPAGATE_STATS_CONTEXT ((gpr_uint32)2)
#define GRPC_PROPAGATE_CENSUS_STATS_CONTEXT ((gpr_uint32)2)
#define GRPC_PROPAGATE_TRACING_CONTEXT ((gpr_uint32)4)
#define GRPC_PROPAGATE_CENSUS_TRACING_CONTEXT ((gpr_uint32)4)
/** Propagate cancellation */
#define GRPC_PROPAGATE_CANCELLATION ((gpr_uint32)8)
#define GRPC_PROPAGATE_CANCELLATION ((gpr_uint32)8)
/* Default propagation mask: clients of the core API are encouraged to encode
/* Default propagation mask: clients of the core API are encouraged to encode
...
@@ -367,10 +368,10 @@ typedef struct grpc_op {
...
@@ -367,10 +368,10 @@ typedef struct grpc_op {
GRPC_PROPAGATE_DEFAULTS & ~GRPC_PROPAGATE_DEADLINE to disable deadline
GRPC_PROPAGATE_DEFAULTS & ~GRPC_PROPAGATE_DEADLINE to disable deadline
propagation. Doing so gives flexibility in the future to define new
propagation. Doing so gives flexibility in the future to define new
propagation types that are default inherited or not. */
propagation types that are default inherited or not. */
#define GRPC_PROPAGATE_DEFAULTS \
#define GRPC_PROPAGATE_DEFAULTS
\
((gpr_uint32)((0xffff | GRPC_PROPAGATE_DEADLINE | \
((gpr_uint32)((0xffff | GRPC_PROPAGATE_DEADLINE |
\
GRPC_PROPAGATE_STATS_CONTEXT |
\
GRPC_PROPAGATE_
CENSUS_
STATS_CONTEXT | \
GRPC_PROPAGATE_TRACING_CONTEXT)))
GRPC_PROPAGATE_
CENSUS_
TRACING_CONTEXT)))
/** Initialize the grpc library.
/** Initialize the grpc library.
...
...
This diff is collapsed.
Click to expand it.
src/core/surface/call.c
+
3
−
3
View file @
fdbd728a
...
@@ -374,13 +374,13 @@ grpc_call *grpc_call_create(grpc_channel *channel, grpc_call *parent_call,
...
@@ -374,13 +374,13 @@ grpc_call *grpc_call_create(grpc_channel *channel, grpc_call *parent_call,
}
}
/* for now GRPC_PROPAGATE_TRACING_CONTEXT *MUST* be passed with
/* for now GRPC_PROPAGATE_TRACING_CONTEXT *MUST* be passed with
* GRPC_PROPAGATE_STATS_CONTEXT */
* GRPC_PROPAGATE_STATS_CONTEXT */
if
(
propagation_mask
&
GRPC_PROPAGATE_TRACING_CONTEXT
)
{
if
(
propagation_mask
&
GRPC_PROPAGATE_
CENSUS_
TRACING_CONTEXT
)
{
GPR_ASSERT
(
propagation_mask
&
GRPC_PROPAGATE_STATS_CONTEXT
);
GPR_ASSERT
(
propagation_mask
&
GRPC_PROPAGATE_
CENSUS_
STATS_CONTEXT
);
grpc_call_context_set
(
call
,
GRPC_CONTEXT_TRACING
,
grpc_call_context_set
(
call
,
GRPC_CONTEXT_TRACING
,
parent_call
->
context
[
GRPC_CONTEXT_TRACING
].
value
,
parent_call
->
context
[
GRPC_CONTEXT_TRACING
].
value
,
NULL
);
NULL
);
}
else
{
}
else
{
GPR_ASSERT
(
propagation_mask
&
GRPC_PROPAGATE_STATS_CONTEXT
);
GPR_ASSERT
(
propagation_mask
&
GRPC_PROPAGATE_
CENSUS_
STATS_CONTEXT
);
}
}
if
(
propagation_mask
&
GRPC_PROPAGATE_CANCELLATION
)
{
if
(
propagation_mask
&
GRPC_PROPAGATE_CANCELLATION
)
{
call
->
cancellation_is_inherited
=
1
;
call
->
cancellation_is_inherited
=
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment