If no rdb file is specified and no s3 file is specified use the default RDB filename. If only S3 is specified use diskless sync
Former-commit-id: 770bb8ef5f52e804a00730ac2aa95a0107c52bab
This commit is contained in:
parent
83fc032d06
commit
eccb4c6d34
@ -5058,6 +5058,14 @@ int main(int argc, char **argv) {
|
||||
sentinelIsRunning();
|
||||
}
|
||||
|
||||
if (server.rdb_filename == nullptr)
|
||||
{
|
||||
if (server.rdb_s3bucketpath == nullptr)
|
||||
server.rdb_filename = zstrdup(CONFIG_DEFAULT_RDB_FILENAME);
|
||||
else
|
||||
server.repl_diskless_sync = TRUE;
|
||||
}
|
||||
|
||||
if (server.cthreads > 4) {
|
||||
serverLog(LL_WARNING, "Warning: server-threads is set to %d. This is above the maximum recommend value of 4, please ensure you've verified this is actually faster on your machine.", server.cthreads);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user