We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8218a30 commit 2a5a9fcCopy full SHA for 2a5a9fc
common/redisreply.h
@@ -128,7 +128,7 @@ inline void guard(FUNC func, const char* command)
128
// Combine more error message and throw again
129
std::string reason = ex.what();
130
std::string errmsg = "RedisReply catches system_error: command: " + std::string(command) + ", reason: " + reason;
131
- if (reason.find("LOADING Redis is loading the dataset in memory") != std::string::npos)
+ if (reason.rfind("LOADING ", 0) == 0)
132
{
133
// The command will fail when Redis is loading the dataset.
134
SWSS_LOG_WARN("%s", errmsg.c_str());
0 commit comments