mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +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)
|
void Request::follow(Request* leader)
|
||||||
{
|
{
|
||||||
++mFollowers;
|
leader->mFollowers += 1;
|
||||||
if (leader == this) {
|
if (leader == this) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,7 +71,7 @@ public:
|
|||||||
bool isDone() const;
|
bool isDone() const;
|
||||||
AcceptConnection* connection() const
|
AcceptConnection* connection() const
|
||||||
{
|
{
|
||||||
return mConn;
|
return mLeader ? mLeader->mConn : mConn;
|
||||||
}
|
}
|
||||||
void detach()
|
void detach()
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user