diff options
author | 2014-12-15 10:25:12 -0800 | |
---|---|---|
committer | 2014-12-15 14:36:22 -0800 | |
commit | 482a5be0b98e796ba0d084c7fdbf0755742ffb69 (patch) | |
tree | 0b90146ed42f6ef2bd7883d624264216c3d662b6 /src/core/transport | |
parent | 5e04b1376d8f718202b7b011eb96f8b980f9bf17 (diff) |
Fix a bug in base-log, and add test.
The tests compute usable space in the log, but do so using subtraction on unsigned values and did not correctly account for number of blocks used per-core. This could lead underflow, and an incorrect space calculation.
In addition, testing showed that with current defaults, tests would fail on a system with > ~64 cores. This can be alleviated through use of a larger log. An explicit
check in the log initialization has been added for this case, and the log size increased if necessary.
Change on 2014/12/15 by aveitch <aveitch@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82154432
Diffstat (limited to 'src/core/transport')
0 files changed, 0 insertions, 0 deletions