Fix bug where we try to load a database with no name
Former-commit-id: e8b5bbf7a16c1d82c8c063a88acd446de1c1392a
This commit is contained in:
parent
08bae383a5
commit
eab4afcafa
@ -4590,7 +4590,7 @@ void loadDataFromDisk(void) {
|
|||||||
if (server.aof_state == AOF_ON) {
|
if (server.aof_state == AOF_ON) {
|
||||||
if (loadAppendOnlyFile(server.aof_filename) == C_OK)
|
if (loadAppendOnlyFile(server.aof_filename) == C_OK)
|
||||||
serverLog(LL_NOTICE,"DB loaded from append only file: %.3f seconds",(float)(ustime()-start)/1000000);
|
serverLog(LL_NOTICE,"DB loaded from append only file: %.3f seconds",(float)(ustime()-start)/1000000);
|
||||||
} else {
|
} else if (server.rdb_filename != NULL) {
|
||||||
rdbSaveInfo rsi = RDB_SAVE_INFO_INIT;
|
rdbSaveInfo rsi = RDB_SAVE_INFO_INIT;
|
||||||
if (rdbLoad(server.rdb_filename,&rsi) == C_OK) {
|
if (rdbLoad(server.rdb_filename,&rsi) == C_OK) {
|
||||||
serverLog(LL_NOTICE,"DB loaded from disk: %.3f seconds",
|
serverLog(LL_NOTICE,"DB loaded from disk: %.3f seconds",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user