aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-29 12:22:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-29 12:22:46 +0000
commit4929e73f2baaa0dd29759a6705ac8dd1b06beb90 (patch)
treee5ea92f88a12cb3ad667ef92eda62b643f2adcc9 /src/lua/lua_redis.c
parentc16f6393333532ceeb65fdc7f62efbc14a987329 (diff)
downloadrspamd-4929e73f2baaa0dd29759a6705ac8dd1b06beb90.tar.gz
rspamd-4929e73f2baaa0dd29759a6705ac8dd1b06beb90.zip
[Project] Another rework for symbols cache
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index ecf97c459..f87878837 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -283,7 +283,7 @@ lua_redis_push_error (const gchar *err,
lua_pushnil (cbs.L);
if (ud->item) {
- rspamd_symbols_cache_set_cur_item (ud->task, ud->item);
+ rspamd_symcache_set_cur_item (ud->task, ud->item);
}
if (lua_pcall (cbs.L, 2, 0, 0) != 0) {
@@ -373,7 +373,7 @@ lua_redis_push_data (const redisReply *r, struct lua_redis_ctx *ctx,
lua_redis_push_reply (cbs.L, r, ctx->flags & LUA_REDIS_TEXTDATA);
if (ud->item) {
- rspamd_symbols_cache_set_cur_item (ud->task, ud->item);
+ rspamd_symcache_set_cur_item (ud->task, ud->item);
}
if (lua_pcall (cbs.L, 2, 0, 0) != 0) {
@@ -939,7 +939,7 @@ rspamd_lua_redis_prepare_connection (lua_State *L, gint *pcbref, gboolean is_asy
ud->task = task;
if (task) {
- ud->item = rspamd_symbols_cache_get_cur_item (task);
+ ud->item = rspamd_symcache_get_cur_item (task);
}
ret = TRUE;