X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5ef640986bc507079506bf77fd22ab31ea3f4fc4..f63f0928c3e08f60f6b8557dc7c5d635834f990b:/src/diskstore.c diff --git a/src/diskstore.c b/src/diskstore.c index 3904310d..0eece403 100644 --- a/src/diskstore.c +++ b/src/diskstore.c @@ -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) { +}