]> git.saurik.com Git - redis.git/commitdiff
useless function removed
authorantirez <antirez@gmail.com>
Tue, 8 Mar 2011 14:10:20 +0000 (15:10 +0100)
committerantirez <antirez@gmail.com>
Tue, 8 Mar 2011 14:10:20 +0000 (15:10 +0100)
TODO
src/dscache.c

diff --git a/TODO b/TODO
index edcd2b3283a8498206f2c70cb21e1d6918c58b9b..48ea8ac6d9875d194e249c2c517426dc8c730596 100644 (file)
--- a/TODO
+++ b/TODO
@@ -20,6 +20,8 @@ DISKSTORE TODO
 * Fix DBSIZE to really do something interesting
 * Add a DEBUG command to check if an entry is or not in memory currently
 
+* dscache.c near 236, kobj = createStringObject... we could use static obj.
+
 APPEND ONLY FILE
 ================
 
index 683c5c1cdca6b449a8759d138a4170781d6d93bd..66e6ee6360caacb700974d910e57c83f6514aeba 100644 (file)
@@ -240,13 +240,6 @@ int cacheFreeOneEntry(void) {
     return REDIS_OK;
 }
 
-/* Return true if it's safe to swap out objects in a given moment.
- * Basically we don't want to swap objects out while there is a BGSAVE
- * or a BGAEOREWRITE running in backgroud. */
-int dsCanTouchDiskStore(void) {
-    return (server.bgsavechildpid == -1 && server.bgrewritechildpid == -1);
-}
-
 /* ==================== Disk store negative caching  ========================
  *
  * When disk store is enabled, we need negative caching, that is, to remember