fix typo in db.c: synchroneus -> synchronous(2 places) (#9702)

Co-authored-by: lijinliang <lijl@newdt.cn>
This commit is contained in:
lijinliang 2021-10-31 22:01:54 +08:00 committed by GitHub
parent 734cde7e38
commit 215b909c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -637,7 +637,7 @@ void flushAllDataAndResetRDB(int flags) {
#if defined(USE_JEMALLOC)
/* jemalloc 5 doesn't release pages back to the OS when there's no traffic.
* for large databases, flushdb blocks for long anyway, so a bit more won't
* harm and this way the flush and purge will be synchroneus. */
* harm and this way the flush and purge will be synchronous. */
if (!(flags & EMPTYDB_ASYNC))
jemalloc_purge();
#endif
@ -655,7 +655,7 @@ void flushdbCommand(client *c) {
#if defined(USE_JEMALLOC)
/* jemalloc 5 doesn't release pages back to the OS when there's no traffic.
* for large databases, flushdb blocks for long anyway, so a bit more won't
* harm and this way the flush and purge will be synchroneus. */
* harm and this way the flush and purge will be synchronous. */
if (!(flags & EMPTYDB_ASYNC))
jemalloc_purge();
#endif