]> git.saurik.com Git - redis.git/blobdiff - src/ae.c
Fixed command table for SETEX and PSETEX causing the expire time to be hashed by...
[redis.git] / src / ae.c
index c7918ee1d6c52732856e3335197c0dff675f9474..0580289002dfa72db5d1d267f13f27f0f02438d9 100644 (file)
--- a/src/ae.c
+++ b/src/ae.c
@@ -118,6 +118,13 @@ void aeDeleteFileEvent(aeEventLoop *eventLoop, int fd, int mask)
     aeApiDelEvent(eventLoop, fd, mask);
 }
 
+int aeGetFileEvents(aeEventLoop *eventLoop, int fd) {
+    if (fd >= AE_SETSIZE) return 0;
+    aeFileEvent *fe = &eventLoop->events[fd];
+
+    return fe->mask;
+}
+
 static void aeGetTime(long *seconds, long *milliseconds)
 {
     struct timeval tv;