« Previous | Next » 

Revision 8f48f67d

ID8f48f67d8c4efd85470951c1f07162d9be92b75c
Parent db56cfc4
Child b4bae394

Added by Iustin Pop over 12 years ago

htools: add optional limit to allocation count

Currently, the tieredAlloc/iterateAlloc functions will not return
until the allocation fails; this means unit-testing their
functionality (e.g. that an instance can be allocated) is slow, since
they will allocate all possible instances.

This patch adds an optional limit that allows allocation to return
early; this makes the cluster unittests twice as fast.

Signed-off-by: Iustin Pop <>
Reviewed-by: Guido Trotter <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences