mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 14:36:42 +08:00
fix for script load command follow policy
This commit is contained in:
parent
7fda4b77c1
commit
34cc6d151e
@ -289,7 +289,7 @@ void Request::adjustScanCursor(long cursor)
|
||||
|
||||
void Request::follow(Request* leader)
|
||||
{
|
||||
++mFollowers;
|
||||
leader->mFollowers += 1;
|
||||
if (leader == this) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -71,7 +71,7 @@ public:
|
||||
bool isDone() const;
|
||||
AcceptConnection* connection() const
|
||||
{
|
||||
return mConn;
|
||||
return mLeader ? mLeader->mConn : mConn;
|
||||
}
|
||||
void detach()
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user