Skip to content

Commit

Permalink
flow api: fix nil pointer handling (#1218)
Browse files Browse the repository at this point in the history
Checks if syncflowoptions is not nil before getting the mirror edits
  • Loading branch information
Amogh-Bharadwaj authored Feb 7, 2024
1 parent dc00c1a commit 67a7a38
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions flow/cmd/mirror_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ func (h *FlowRequestHandler) CDCFlowStatus(
}

// patching config to show latest values from state
config.IdleTimeoutSeconds = state.SyncFlowOptions.IdleTimeoutSeconds
config.MaxBatchSize = state.SyncFlowOptions.BatchSize
config.TableMappings = state.TableMappings
if state.SyncFlowOptions != nil {
config.IdleTimeoutSeconds = state.SyncFlowOptions.IdleTimeoutSeconds
config.MaxBatchSize = state.SyncFlowOptions.BatchSize
config.TableMappings = state.TableMappings
}

var initialCopyStatus *protos.SnapshotStatus

Expand Down

0 comments on commit 67a7a38

Please sign in to comment.