Avoid loop when not flightrecording
This commit is contained in:
parent
aa874d610f
commit
0475c11a1b
1 changed files with 7 additions and 5 deletions
|
|
@ -587,11 +587,13 @@ private[akka] class Shard(
|
|||
storingStarts.mkString(", "),
|
||||
storingStops.mkString(", "))
|
||||
|
||||
storingStarts.foreach { entityId =>
|
||||
flightRecorder.rememberEntityAdd(entityId)
|
||||
}
|
||||
storingStops.foreach { id =>
|
||||
flightRecorder.rememberEntityRemove(id)
|
||||
if (flightRecorder != NoOpShardingFlightRecorder) {
|
||||
storingStarts.foreach { entityId =>
|
||||
flightRecorder.rememberEntityAdd(entityId)
|
||||
}
|
||||
storingStops.foreach { id =>
|
||||
flightRecorder.rememberEntityRemove(id)
|
||||
}
|
||||
}
|
||||
val startTimeNanos = System.nanoTime()
|
||||
val update = RememberEntitiesShardStore.Update(started = storingStarts, stopped = storingStops)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue