protected void payloadDeleted ( int totalPayloadSize , int unwrittenPayloadSize ) { if ( tc . isEntryEnabled ( ) ) Tr . entry ( tc , "payloadDeleted" , new Object [ ] { this , totalPayloadSize , unwrittenPayloadSize } ) ; _unwrittenDataSize . addAndGet ( - unwrittenPayloadSize ) ; synchronized ( this ) { _totalDataSize -= totalPayloadSize ; } if ( tc . isDebugEnabled ( ) ) Tr . debug ( tc , "unwrittenDataSize = " + _unwrittenDataSize . get ( ) + " totalDataSize = " + _totalDataSize ) ; if ( tc . isEntryEnabled ( ) ) Tr . exit ( tc , "payloadDeleted" ) ; }
Informs the recovery log that data has been removed from one of its recoverable units . Right now this means that a recoverable unit and all its content has been removed but in the future this will also be driven when a single recoverable unit section within a recoverable unit has been removed . The recovery log must use the supplied information to track the amount of active data it holds . This information will be required each time a keypoint occurs in order to determine if there is sufficient space in the current file to perform the keypoint sucessfully .