fix typo in db.c: synchroneus -> synchronous(2 places) (#9702)
Co-authored-by: lijinliang <lijl@newdt.cn>
This commit is contained in:
parent
734cde7e38
commit
215b909c1f
4
src/db.c
4
src/db.c
@ -637,7 +637,7 @@ void flushAllDataAndResetRDB(int flags) {
|
|||||||
#if defined(USE_JEMALLOC)
|
#if defined(USE_JEMALLOC)
|
||||||
/* jemalloc 5 doesn't release pages back to the OS when there's no traffic.
|
/* 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
|
* 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))
|
if (!(flags & EMPTYDB_ASYNC))
|
||||||
jemalloc_purge();
|
jemalloc_purge();
|
||||||
#endif
|
#endif
|
||||||
@ -655,7 +655,7 @@ void flushdbCommand(client *c) {
|
|||||||
#if defined(USE_JEMALLOC)
|
#if defined(USE_JEMALLOC)
|
||||||
/* jemalloc 5 doesn't release pages back to the OS when there's no traffic.
|
/* 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
|
* 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))
|
if (!(flags & EMPTYDB_ASYNC))
|
||||||
jemalloc_purge();
|
jemalloc_purge();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user