Close all chunks before flushing. Moved the check for already closed to make sure we honor this check when `immediate` flushing is requested
Close all chunks before flushing.
Moved the check for already closed to make sure we honor this check when `immediate` flushing is requested

grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki,grafana/loki