Skip to content

Commit

Permalink
Closes #82. _compact for CACHE_BIG was not being called unless it rec…
Browse files Browse the repository at this point in the history
…eived large data again (co/commandCache.cpp).Picked some changes from EQ master as well.

[ ] May break build
[ ] May break existing applications (see CHANGES.txt)
[x] Bugfix
[ ] New Feature
[ ] Cleanup
[ ] Optimization
[ ] Documentation
  • Loading branch information
dulley authored and eile committed Jan 24, 2012
1 parent b7a9245 commit da9b186
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/co/commandCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ void CommandCache::_compact( const Cache which )
const int32_t num = int32_t( cache.size() >> _freeShift );
maxFree = EQ_MAX( _minFree[ which ] , num );
_position[ which ] = cache.begin();
if ( which == CACHE_SMALL )
_compact( CACHE_BIG );
#endif // COMPACT
}

Expand Down

0 comments on commit da9b186

Please sign in to comment.