----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/50062/ -----------------------------------------------------------
(Updated 七月 21, 2016, 2:07 a.m.) Review request for mesos, Benjamin Mahler and Jiang Yan Xu. Summary (updated) ----------------- Refactored `makePortRanges` for allocator benchmark test. Repository: mesos Description (updated) ------- This patch refactored the helper function of `makePortRanges` as this: 1) Renamed `makePortRanges` to `makePorts`, this function creates a "ports(*)" resource for the given ranges. 2) Added a new helper function `fragment`, it helps to fragments the given range bounds into a number of subranges. 3) Keep `makeRange` unchanged but updated its parameter using `uint64_t`. Diffs (updated) ----- src/tests/hierarchical_allocator_tests.cpp befb94adb15e051abae135c7697538bd0cf83852 Diff: https://reviews.apache.org/r/50062/diff/ Testing ------- make make check Thanks, Guangya Liu
