Replication auto-drain

No more artificial retention of the last few records to prevent closing file transaction log iterator.