private void setNodeDirty ( final Node < K , V > node ) { final int nodeid = node . id ; final int index = nodeid < 0 ? - nodeid : nodeid ; ( node . isLeaf ( ) ? dirtyLeafNodes : dirtyInternalNodes ) . put ( nodeid , node ) ; ( node . isLeaf ( ) ? cacheLeafNodes : cacheInternalNodes ) . remove ( nodeid ) ; if ( enableIOStats ) { getIOStat ( nodeid ) . incCacheWrite ( ) ; } if ( enableDirtyCheck ) { dirtyCheck . set ( index ) ; } }
Put a node in dirty cache