mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
sharedata serialization bugfix
This commit is contained in:
@@ -43,7 +43,7 @@ skynet.start(function()
|
|||||||
for k,v in pairs(nobj) do
|
for k,v in pairs(nobj) do
|
||||||
skynet.error(string.format("nobj[%s]=%s", k,v))
|
skynet.error(string.format("nobj[%s]=%s", k,v))
|
||||||
end
|
end
|
||||||
for k,v in ipairs(nobj) do
|
for k,v in ipairs(nobj.b) do
|
||||||
skynet.error(string.format("nobj.b[%d]=%s", k,v))
|
skynet.error(string.format("nobj.b[%d]=%s", k,v))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -266,8 +266,10 @@ wb_table_metapairs(lua_State *L, struct write_block *wb, int index, int depth) {
|
|||||||
lua_copy(L, -5, -3);
|
lua_copy(L, -5, -3);
|
||||||
lua_call(L, 2, 2);
|
lua_call(L, 2, 2);
|
||||||
int type = lua_type(L, -2);
|
int type = lua_type(L, -2);
|
||||||
if (type == LUA_TNIL)
|
if (type == LUA_TNIL) {
|
||||||
|
lua_pop(L, 4);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
pack_one(L, wb, -2, depth);
|
pack_one(L, wb, -2, depth);
|
||||||
pack_one(L, wb, -1, depth);
|
pack_one(L, wb, -1, depth);
|
||||||
lua_pop(L, 1);
|
lua_pop(L, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user