Skip to content

Commit

Permalink
[Java] Don't linger a replay publication for replay merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjpt777 committed Dec 9, 2019
1 parent 7e799ba commit db02cbc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@
*/
package io.aeron.archive.client;

import io.aeron.Aeron;
import io.aeron.ChannelUri;
import io.aeron.Image;
import io.aeron.Subscription;
import io.aeron.*;
import io.aeron.archive.codecs.ControlResponseCode;
import io.aeron.exceptions.TimeoutException;
import io.aeron.logbuffer.FragmentHandler;
Expand Down Expand Up @@ -110,11 +107,14 @@ public ReplayMerge(
subscriptionChannelUri.get(MDC_CONTROL_MODE_PARAM_NAME));
}

final ChannelUri replayChannelUri = ChannelUri.parse(replayChannel);
replayChannelUri.put(CommonContext.LINGER_PARAM_NAME, "0");

this.archive = archive;
this.subscription = subscription;
this.epochClock = epochClock;
this.replayDestination = replayDestination;
this.replayChannel = replayChannel;
this.replayChannel = replayChannelUri.toString();
this.liveDestination = liveDestination;
this.recordingId = recordingId;
this.startPosition = startPosition;
Expand Down

0 comments on commit db02cbc

Please sign in to comment.