Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public interface LifecycleNewTracker
void trackNew(SSTable table);

/**
* Called when a new sstable and its indexes bave been fully written
* Called when a new sstable and its indexes have been fully written.
* Implementation must be thread safe and not alter the state of the transaction.
*
* @param table - the newly written sstable to be tracked
*/
default void trackNewWritten(SSTable table)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ public void trackNew(SSTable table)
public void trackNewWritten(SSTable table)
{
throwIfCompositeAborted();
synchronized (mainTransaction)
{
mainTransaction.trackNewWritten(table);
}
// Beware: not synchronized. Thread safety shall be ensured in the main transaction trackNewWritten.
mainTransaction.trackNewWritten(table);
}

@Override
Expand Down