Merge branch 'main' of https://github.com/Liuccysdgg/module-redis
This commit is contained in:
@@ -157,7 +157,7 @@ sol::object module::redis_pool::reply(sol::this_state* ts,redisContext* ctx, red
|
|||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
{
|
{
|
||||||
freeReplyObject(reply);
|
freeReplyObject(reply);
|
||||||
throw e;
|
throw ylib::exception(e.what());
|
||||||
}
|
}
|
||||||
freeReplyObject(reply);
|
freeReplyObject(reply);
|
||||||
return result;
|
return result;
|
||||||
@@ -194,7 +194,6 @@ sol::object module::redis::command(const std::string& cmd, sol::this_state ts)
|
|||||||
if (m_context->err)
|
if (m_context->err)
|
||||||
{
|
{
|
||||||
m_context = m_pool->reget(m_context);
|
m_context = m_pool->reget(m_context);
|
||||||
|
|
||||||
reply = (redisReply*)redisCommand(m_context, cmd.c_str());
|
reply = (redisReply*)redisCommand(m_context, cmd.c_str());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user