Changeset 738 for trunk/server/slabs.h

Show
Ignore:
Timestamp:
03/03/08 05:08:26 (21 months ago)
Author:
dormando
Message:

Don't re-calculate the slab class id.
slabs_alloc() internally calls slabs_clsid(), so an eviction case would crawl the list of slab classes three times.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/server/slabs.h

    r724 r738  
    1818 
    1919/** Allocate object of given length. 0 on error */ /*@null@*/ 
    20 void *do_slabs_alloc(const size_t size); 
     20void *do_slabs_alloc(const size_t size, unsigned int id); 
    2121 
    2222/** Free previously allocated object */