|
@@ -116,7 +116,11 @@ function root:backup_to_db()
|
116
|
116
|
local tbName = self:get_table_name()
|
117
|
117
|
local sql =
|
118
|
118
|
string.format("replace into %s (%s) value (%s);", tbName, table.concat(colums, ","), table.concat(values, ","))
|
119
|
|
- return lib_game_mysql:query(sql)
|
|
119
|
+ local ret = lib_game_mysql:query(sql)
|
|
120
|
+ if not is_empty(ret) then
|
|
121
|
+ log.info("backup_to_db sql[%s] ret[%s]", tostring(sql), tostring(ret))
|
|
122
|
+ end
|
|
123
|
+ return ret
|
120
|
124
|
end
|
121
|
125
|
-- 删除模块热数据
|
122
|
126
|
function root:del_hot_data()
|