Skip to content

Commit

Permalink
Merge pull request #619 from JPWatson/segement-length
Browse files Browse the repository at this point in the history
Fix segment length in Catalog
  • Loading branch information
tmontgomery authored Jan 24, 2019
2 parents 7ec1035 + 515b6dd commit 1b1e726
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,12 +771,13 @@ private void startRecordingSession(
final int mtuLength = image.mtuLength();
final int initialTermId = image.initialTermId();
final long startPosition = image.joinPosition();
final int segmentFileLength = Math.max(ctx.segmentFileLength(), termBufferLength);

final long recordingId = catalog.addNewRecording(
startPosition,
cachedEpochClock.time(),
initialTermId,
ctx.segmentFileLength(),
segmentFileLength,
termBufferLength,
mtuLength,
sessionId,
Expand All @@ -792,7 +793,7 @@ private void startRecordingSession(
final RecordingSession session = new RecordingSession(
recordingId,
startPosition,
Math.max(ctx.segmentFileLength(), termBufferLength),
segmentFileLength,
originalChannel,
recordingEventsProxy,
image,
Expand Down

0 comments on commit 1b1e726

Please sign in to comment.