Skip to content

Commit

Permalink
Null previous tx in PhysicalTransactionCursor
Browse files Browse the repository at this point in the history
such that a potentially large transaction won't need to be resident in heap
while deserializing the next one.
  • Loading branch information
tinwelint committed Dec 12, 2017
1 parent 4b09b8f commit 40d5612
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public CommittedTransactionRepresentation get()
@Override
public boolean next() throws IOException
{
// Clear the previous deserialized transaction so that it won't have to be kept in heap while deserializing
// the next one. Could be problematic if both are really big.
current = null;

while ( true )
{
if ( !logEntryCursor.next() )
Expand Down

0 comments on commit 40d5612

Please sign in to comment.