FS-8075 Fix for failover when you pull power on redis, while redis clients under load test

This commit is contained in:
William King 2015-09-09 10:39:00 -07:00
parent ba5aa94ce8
commit d7724cc2aa
1 changed files with 5 additions and 0 deletions

View File

@ -143,6 +143,11 @@ switch_status_t hiredis_profile_execute_sync(hiredis_profile_t *profile, const c
response = redisCommand(profile->conn->context, data);
if ( !response ) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "hiredis: empty response received\n");
return SWITCH_STATUS_GENERR;
}
switch(response->type) {
case REDIS_REPLY_STATUS: /* fallthrough */
case REDIS_REPLY_STRING: