summaryrefslogtreecommitdiff
path: root/src/zmalloc.c
diff options
context:
space:
mode:
authorsundb <sundbcn@gmail.com>2021-11-16 14:55:10 +0800
committerGitHub <noreply@github.com>2021-11-16 08:55:10 +0200
commite725d737fb2ee492fbcd04bb7deb1696d7e182d1 (patch)
treeb84ce135e03c4e9708ec250671c95b5f9130f5a8 /src/zmalloc.c
parentaba70df48f2ca8a567d2c11d34fb768bf764c487 (diff)
downloadredis-e725d737fb2ee492fbcd04bb7deb1696d7e182d1.tar.gz
Add --large-memory flag for REDIS_TEST to enable tests that consume more than 100mb (#9784)
This is a preparation step in order to add a new test in quicklist.c see #9776
Diffstat (limited to 'src/zmalloc.c')
-rw-r--r--src/zmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zmalloc.c b/src/zmalloc.c
index b68f6b46a..827f23c85 100644
--- a/src/zmalloc.c
+++ b/src/zmalloc.c
@@ -712,12 +712,12 @@ size_t zmalloc_get_memory_size(void) {
#ifdef REDIS_TEST
#define UNUSED(x) ((void)(x))
-int zmalloc_test(int argc, char **argv, int accurate) {
+int zmalloc_test(int argc, char **argv, int flags) {
void *ptr;
UNUSED(argc);
UNUSED(argv);
- UNUSED(accurate);
+ UNUSED(flags);
printf("Malloc prefix size: %d\n", (int) PREFIX_SIZE);
printf("Initial used memory: %zu\n", zmalloc_used_memory());
ptr = zmalloc(123);