]> git.saurik.com Git - redis.git/blobdiff - src/diskstore.c
cron part of disk store object cache implemented. Objects are pushed as IO jobs if...
[redis.git] / src / diskstore.c
index 3904310d3c5c4a070ff0e8a1762014c043826c10..0eece403d98da86e08fa519dcac7ede0112d9730 100644 (file)
@@ -97,7 +97,7 @@ int dsOpen(void) {
     /* New disk store, create the directory structure now, as creating
      * them in a lazy way is not a good idea, after very few insertions
      * we'll need most of the 65536 directories anyway. */
-    if (mkdir(path) == -1) {
+    if (mkdir(path,0644) == -1) {
         redisLog(REDIS_WARNING,"Disk store init failed creating dir %s: %s",
             path, strerror(errno));
         return REDIS_ERR;
@@ -120,3 +120,6 @@ int dsDel(redisDb *db, robj *key) {
 
 int dsExists(redisDb *db, robj *key) {
 }
+
+int dsFlushDb(int dbid) {
+}