diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-09 12:59:29 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-09 13:00:10 +0000 |
commit | 055b0b5c6a2dd7029080cb3d2d4e49aaffe6c5f2 (patch) | |
tree | 08ca710faaeb8695d10cb42b43d45bde40e767fe /testing/uwsgi/lua-cache-update.patch | |
parent | 3da4e720e4b7fa886951f4e2f540bab2b4c437af (diff) | |
download | aports-055b0b5c6a2dd7029080cb3d2d4e49aaffe6c5f2.tar.bz2 aports-055b0b5c6a2dd7029080cb3d2d4e49aaffe6c5f2.tar.xz |
testing/uwsgi: upgrade to 1.9.15 and switch to Lua 5.2
Diffstat (limited to 'testing/uwsgi/lua-cache-update.patch')
-rw-r--r-- | testing/uwsgi/lua-cache-update.patch | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/testing/uwsgi/lua-cache-update.patch b/testing/uwsgi/lua-cache-update.patch deleted file mode 100644 index 6943a97c9a..0000000000 --- a/testing/uwsgi/lua-cache-update.patch +++ /dev/null @@ -1,45 +0,0 @@ ---- uwsgi-1.4.3/plugins/lua/lua_plugin.c -+++ uwsgi-1.4.3.new/plugins/lua/lua_plugin.c -@@ -157,6 +157,34 @@ - - } - -+static int uwsgi_api_cache_update(lua_State *L) { -+ -+ int args = lua_gettop(L); -+ const char *key ; -+ const char *value ; -+ uint64_t expires = 0; -+ size_t vallen; -+ -+ -+ if (args > 1) { -+ -+ key = lua_tolstring(L, 1, NULL); -+ value = lua_tolstring(L, 2, &vallen); -+ if (args > 2) { -+ expires = lua_tonumber(L, 3); -+ } -+ -+ uwsgi_cache_set((char *)key, strlen(key), (char *)value, -+ (uint16_t) vallen, expires, -+ UWSGI_CACHE_FLAG_UPDATE); -+ -+ } -+ -+ lua_pushnil(L); -+ return 1; -+ -+} -+ - static int uwsgi_api_register_signal(lua_State *L) { - - int args = lua_gettop(L); -@@ -298,6 +326,7 @@ - {"send_message", uwsgi_api_send_message}, - {"cache_get", uwsgi_api_cache_get}, - {"cache_set", uwsgi_api_cache_set}, -+ {"cache_update", uwsgi_api_cache_update}, - {"register_signal", uwsgi_api_register_signal}, - {"register_rpc", uwsgi_api_register_rpc}, - {NULL, NULL} |