Browse Source

add missing Redis auth for async context

Change-Id: I10d05b5f328a70eb9e71852920502d87f0ba317f
pull/1072/head
Richard Fuchs 5 years ago
parent
commit
f8f74d89b9
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      daemon/redis.c

+ 7
- 0
daemon/redis.c View File

@ -557,6 +557,13 @@ static int redis_notify(void) {
return -1;
}
if (rtpe_redis_notify->auth) {
if (redisAsyncCommand(rtpe_redis_notify_async_context, on_redis_notification, NULL, "AUTH %s", rtpe_redis_notify->auth) != REDIS_OK) {
rlog(LOG_ERROR, "Fail redisAsyncCommand on AUTH");
return -1;
}
}
// subscribe to the values in the configured keyspaces
rwlock_lock_r(&rtpe_config.config_lock);
for (l = rtpe_config.redis_subscribed_keyspaces.head; l; l = l->next) {


Loading…
Cancel
Save