X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/3be00d7ed619c12795da54553230aee15c555532..6eaad66373982aa9c1c0ff6b584c542670548d0e:/src/redis.c diff --git a/src/redis.c b/src/redis.c index 9d7cc92d..91371a00 100644 --- a/src/redis.c +++ b/src/redis.c @@ -778,6 +778,7 @@ void initServerConfig() { server.list_max_ziplist_value = REDIS_LIST_MAX_ZIPLIST_VALUE; server.set_max_intset_entries = REDIS_SET_MAX_INTSET_ENTRIES; server.shutdown_asap = 0; + server.cache_flush_delay = 0; updateLRUClock(); resetServerSaveParams(); @@ -827,7 +828,6 @@ void initServer() { server.monitors = listCreate(); server.unblocked_clients = listCreate(); server.cache_io_queue = listCreate(); - server.cache_flush_delay = 0; createSharedObjects(); server.el = aeCreateEventLoop(); @@ -1441,7 +1441,7 @@ void createPidFile(void) { /* Try to write the pid file in a best-effort way. */ FILE *fp = fopen(server.pidfile,"w"); if (fp) { - fprintf(fp,"%d\n",getpid()); + fprintf(fp,"%d\n",(int)getpid()); fclose(fp); } }