Skip to content

Commit

Permalink
fix for script load command follow policy
Browse files Browse the repository at this point in the history
  • Loading branch information
fortrue committed Jun 12, 2018
1 parent 7fda4b7 commit 34cc6d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Request.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ void Request::adjustScanCursor(long cursor)

void Request::follow(Request* leader)
{
++mFollowers;
leader->mFollowers += 1;
if (leader == this) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Request.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Request :
bool isDone() const;
AcceptConnection* connection() const
{
return mConn;
return mLeader ? mLeader->mConn : mConn;
}
void detach()
{
Expand Down

0 comments on commit 34cc6d1

Please sign in to comment.