Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tapir
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
syslab
tapir
Commits
90d55b5e
Commit
90d55b5e
authored
9 years ago
by
Irene Y Zhang
Browse files
Options
Downloads
Patches
Plain Diff
returning continuation to two arguments
parent
c2644a95
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
replication/ir/client.cc
+1
-1
1 addition, 1 deletion
replication/ir/client.cc
store/tapirstore/shardclient.cc
+4
-12
4 additions, 12 deletions
store/tapirstore/shardclient.cc
with
5 additions
and
13 deletions
replication/ir/client.cc
+
1
−
1
View file @
90d55b5e
...
...
@@ -331,7 +331,7 @@ IRClient::HandleInconsistentReply(const TransportAddress &remote,
}
// don't use the confirmation timeout for async replies
// Return to client
req
->
continuation
(
req
->
request
);
req
->
continuation
(
req
->
request
,
""
);
delete
req
;
}
}
...
...
This diff is collapsed.
Click to expand it.
store/tapirstore/shardclient.cc
+
4
−
12
View file @
90d55b5e
...
...
@@ -312,12 +312,9 @@ ShardClient::PrepareCallback(const string &request_str, const string &reply_str)
/* Callback from a shard replica on commit operation completion. */
void
ShardClient
::
CommitCallback
(
const
string
&
request_str
)
ShardClient
::
CommitCallback
(
const
string
&
request_str
,
const
string
&
reply_str
)
{
// COMMITs always succeed.
Reply
reply
;
reply
.
ParseFromString
(
reply_str
);
ASSERT
(
reply
.
status
()
==
REPLY_OK
);
ASSERT
(
blockingBegin
!=
NULL
);
blockingBegin
->
Reply
(
0
);
...
...
@@ -325,19 +322,15 @@ ShardClient::CommitCallback(const string &request_str)
if
(
waiting
!=
NULL
)
{
Promise
*
w
=
waiting
;
waiting
=
NULL
;
w
->
Reply
(
reply
.
status
());
}
Debug
(
"[shard %i] Received COMMIT callback [%d]"
,
shard
,
reply
.
status
()
);
Debug
(
"[shard %i] Received COMMIT callback [%d]"
,
shard
);
}
/* Callback from a shard replica on abort operation completion. */
void
ShardClient
::
AbortCallback
(
const
string
&
request_str
)
ShardClient
::
AbortCallback
(
const
string
&
request_str
,
const
string
&
reply_str
)
{
// ABORTs always succeed.
Reply
reply
;
reply
.
ParseFromString
(
reply_str
);
ASSERT
(
reply
.
status
()
==
REPLY_OK
);
ASSERT
(
blockingBegin
!=
NULL
);
blockingBegin
->
Reply
(
0
);
...
...
@@ -345,9 +338,8 @@ ShardClient::AbortCallback(const string &request_str)
if
(
waiting
!=
NULL
)
{
Promise
*
w
=
waiting
;
waiting
=
NULL
;
w
->
Reply
(
reply
.
status
());
}
Debug
(
"[shard %i] Received ABORT callback [%d]"
,
shard
,
reply
.
status
()
);
Debug
(
"[shard %i] Received ABORT callback [%d]"
,
shard
);
}
}
// namespace tapir
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