Skip to content

Commit

Permalink
extstore: redefine mem_limit_reached for callers
Browse files Browse the repository at this point in the history
uses actual mem limit... may be wrong if slab_reassign isn't enabled :(

allows better judgement for flusher.
  • Loading branch information
dormando committed Dec 4, 2017
1 parent 8421b6c commit f063dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slabs.c
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ unsigned int slabs_available_chunks(const unsigned int id, bool *mem_flag,
p = &slabclass[id];
ret = p->sl_curr;
if (mem_flag != NULL)
*mem_flag = mem_limit_reached;
*mem_flag = mem_malloced >= mem_limit ? true : false;
if (total_bytes != NULL)
*total_bytes = p->requested;
if (chunks_perslab != NULL)
Expand Down

0 comments on commit f063dd6

Please sign in to comment.