]> source.dussan.org Git - rspamd.git/commitdiff
[Refactor] Correct misspelled variable name in lua_redis
authorAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 28 Jun 2017 07:22:20 +0000 (10:22 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Wed, 28 Jun 2017 07:22:20 +0000 (10:22 +0300)
src/lua/lua_redis.c

index 4b8e259233937f8403b1c8e91c50d81a81a4e50c..c21d69f33cca156bd390841f83b03553982d24df 100644 (file)
@@ -162,7 +162,7 @@ lua_redis_dtor (struct lua_redis_ctx *ctx)
 {
        struct lua_redis_userdata *ud;
        struct lua_redis_specific_userdata *cur, *tmp;
-       gboolean is_successfull = TRUE;
+       gboolean is_successful = TRUE;
        struct redisAsyncContext *ac;
 
        if (IS_ASYNC (ctx)) {
@@ -175,7 +175,7 @@ lua_redis_dtor (struct lua_redis_ctx *ctx)
                                event_del (&cur->timeout);
 
                                if (!(cur->flags & LUA_REDIS_SPECIFIC_REPLIED)) {
-                                       is_successfull = FALSE;
+                                       is_successful = FALSE;
                                }
 
                                cur->flags |= LUA_REDIS_SPECIFIC_FINISHED;
@@ -184,7 +184,7 @@ lua_redis_dtor (struct lua_redis_ctx *ctx)
                        ud->terminated = 1;
                        ac = ud->ctx;
                        ud->ctx = NULL;
-                       rspamd_redis_pool_release_connection (ud->pool, ac, is_successfull);
+                       rspamd_redis_pool_release_connection (ud->pool, ac, is_successful);
                }
 
                LL_FOREACH_SAFE (ud->specific, cur, tmp) {