Compare commits

..

2 Commits

Author SHA1 Message Date
fortrue
ca1630a6b4
Merge pull request #185 from joyieldInc/fix/issue124
avoid to use leader's connection for follow request
2024-01-31 11:40:02 +08:00
fortrue
9b85bd0e38 avoid to use leader's connection for follow request 2024-01-25 22:28:45 +08:00
3 changed files with 3 additions and 32 deletions

View File

@ -1,31 +0,0 @@
# 7.0.1
+ Add new config IgnoreArgNumCheck, use to ignore argument number check in Predixy
+ Improve the performance for relaod license
+ Fix the rewrite error response
# 7.0.0
+ Support new command for Redis 6.x and 7.x, list below:
+ Function: all Function serial commands
+ Script: eval_ro; improve script implement
+ Set: sintercard smismember
+ Zset: bzmpop zdiff zdiffstore zinter zintercard zmpop zmscore zrandmember
zrangestore zunion
+ List: lmove lmpop lpos
+ Geo: georadius_ro georadiusbymember_ro geosearch geosearchstore
+ Other: reset expiretime pexiretime sort_ro bitfield_ro getdel getex
lcs substr hrandfield
+ PubSub: supports Shard PubSub; refactor all PubSub codes for Predixy, now
Predixy can support Redis PubSub fully.
# 5.2.0
+ Supports domain in config for discover redis nodes
+ Auto remove the redis node if it's not stay in the Redis Cluster
+ Improve the deploy for exporter
+ Require license to running
+ Improve the compatibility for client within Redis Cluster
+ Disable some redis commands in config
+ PINFO reply the arch information
+ WorkerThreads: the config field can auto detect the CPU cores

View File

@ -103,6 +103,7 @@ Request::~Request()
void Request::clear()
{
mConn = nullptr;
mRes = nullptr;
mHead.clear();
mReq.clear();
@ -293,6 +294,7 @@ void Request::follow(Request* leader)
if (leader == this) {
return;
}
mConn = leader->mConn;
mType = leader->mType;
mHead = leader->mHead;
mReq = leader->mReq;

View File

@ -71,7 +71,7 @@ public:
bool isDone() const;
AcceptConnection* connection() const
{
return mLeader ? mLeader->mConn : mConn;
return mConn;
}
void detach()
{