Skip to content

Commit

Permalink
Closes #82: Excessive memory usage with push and no CO_AGRESSIVE_CACHING
Browse files Browse the repository at this point in the history
[ ] May break build
[ ] May break existing applications (see CHANGES.txt)
[x] Bugfix
[ ] New Feature
[ ] Cleanup
[ ] Optimization
[ ] Documentation
  • Loading branch information
eile committed Jan 10, 2012
1 parent a34ff9a commit 8a402f3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libs/co/objectStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,12 @@ bool ObjectStore::_cmdInstance( Command& command )
const ObjectVersion rev( packet->objectID, packet->version );

if( _instanceCache )
_instanceCache->add( rev, packet->masterInstanceID, command, 0 );
{
#ifndef CO_AGGRESSIVE_CACHING // Issue #82:
if( type != CMD_NODE_OBJECT_INSTANCE_PUSH )
#endif
_instanceCache->add( rev, packet->masterInstanceID, command, 0 );
}

switch( type )
{
Expand Down

0 comments on commit 8a402f3

Please sign in to comment.