mirror of
https://github.com/fluencelabs/redis
synced 2025-06-16 18:51:20 +00:00
Lazyfree: pending objects count in INFO output.
This commit is contained in:
@ -6,6 +6,11 @@
|
||||
static size_t lazyfree_objects = 0;
|
||||
pthread_mutex_t lazyfree_objects_mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
/* Return the number of currently pending objects to free. */
|
||||
size_t lazyfreeGetPendingObjectsCount(void) {
|
||||
return lazyfree_objects;
|
||||
}
|
||||
|
||||
/* Return the amount of work needed in order to free an object.
|
||||
* The return value is not always the actual number of allocations the
|
||||
* object is compoesd of, but a number proportional to it.
|
||||
|
Reference in New Issue
Block a user