diff options
Diffstat (limited to 'agni.c')
-rw-r--r-- | agni.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -710,6 +710,20 @@ int th_event_manager(void *data) ecmd->id = uniq_id(); ecmd->name = alloc_new_str("local-executor"); ecmd->cmd = alloc_new_str(single_cmd->name); + switch(single_cmd->type) + { + case CMD_T_SIMPLE: + ecmd->type = TBL_T_SIMPLE; + break; + case CMD_T_RPC: + ecmd->type = TBL_T_RPC; + break; + case CMD_T_LUA: + ecmd->type = TBL_T_LUA; + break; + default: + ERROR("No such type, something wrong here\n"); + } ecmd->callback = single_cmd->callback; if (-1 == tbl_exec_add(etbl, ecmd)) |