]> git.saurik.com Git - redis.git/blobdiff - src/redis.h
Fixed arity detection of Redis command executed from Lua script. Error reporting...
[redis.git] / src / redis.h
index 4848de95bde0be466489f1c292c7051bd0060823..d9609991710684655a974e96ef194cfcaded65c7 100644 (file)
 #define REDIS_CLOSE_AFTER_REPLY 128 /* Close after writing entire reply. */
 #define REDIS_UNBLOCKED 256 /* This client was unblocked and is stored in
                                server.unblocked_clients */
+#define REDIS_LUA_CLIENT 512 /* This is a non connected client used by Lua */
 
 /* Client request types */
 #define REDIS_REQ_INLINE 1
@@ -657,6 +658,7 @@ struct redisServer {
     clusterState cluster;
     /* Scripting */
     lua_State *lua;
+    redisClient *lua_client;
 };
 
 typedef struct pubsubPattern {