mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
bugfix: mongo driver
This commit is contained in:
@@ -13,6 +13,7 @@ Dev version
|
|||||||
* add DEBUG command exit (send a message to lua service by DEBUG)
|
* add DEBUG command exit (send a message to lua service by DEBUG)
|
||||||
* add DEBUG command run (debug_console command inject)
|
* add DEBUG command run (debug_console command inject)
|
||||||
* bugfix : socketchannel connect once
|
* bugfix : socketchannel connect once
|
||||||
|
* bugfix : mongo driver
|
||||||
|
|
||||||
v0.5.2 (2014-8-11)
|
v0.5.2 (2014-8-11)
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
@@ -507,8 +507,8 @@ op_insert(lua_State *L) {
|
|||||||
for (i=1;i<=s;i++) {
|
for (i=1;i<=s;i++) {
|
||||||
lua_rawgeti(L,3,i);
|
lua_rawgeti(L,3,i);
|
||||||
document doc = lua_touserdata(L,-1);
|
document doc = lua_touserdata(L,-1);
|
||||||
|
lua_pop(L,1); // must call lua_pop before luaL_addlstring, because addlstring may change stack top
|
||||||
luaL_addlstring(&b, (const char *)doc, get_length(doc));
|
luaL_addlstring(&b, (const char *)doc, get_length(doc));
|
||||||
lua_pop(L,1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user