initial fix of the test suite to run both in in-memory and diskstore mode

This commit is contained in:
antirez
2011-01-09 16:49:52 +01:00
parent 67a1810b32
commit 5e1d2d30f7
5 changed files with 148 additions and 26 deletions

View File

@ -186,7 +186,7 @@ size_t zmalloc_used_memory(void) {
}
size_t zmalloc_allocations_for_size(size_t size) {
if (size > ZMALLOC_MAX_ALLOC_STAT || size < 0) return 0;
if (size > ZMALLOC_MAX_ALLOC_STAT) return 0;
return zmalloc_allocations[size];
}