Skip to content

Commit

Permalink
Fix compilation without active defrag
Browse files Browse the repository at this point in the history
  • Loading branch information
MeirShpilraien committed Sep 2, 2024
1 parent ecfec36 commit 7c3845f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/defrag.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,6 +1269,16 @@ void *activeDefragAlloc(void *ptr) {
return NULL;
}

void *activeDefragAllocRaw(size_t size) {
/* fallback to regular allocation */
return zmalloc(size);
}

void activeDefragFreeRaw(void *ptr) {
/* fallback to regular free */
zfree(ptr);
}

robj *activeDefragStringOb(robj *ob) {
UNUSED(ob);
return NULL;
Expand Down

0 comments on commit 7c3845f

Please sign in to comment.