Skip to content

Commit

Permalink
Bug: dbCreated is false when db already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Jan 7, 2025
1 parent 7e0c772 commit 61fd674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/vt/sidecardb/sidecardb.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,10 @@ func Init(ctx context.Context, env *vtenv.Environment, exec Exec) error {
if err := si.createSidecarDB(); err != nil {
return err
}
si.dbCreated = true
}

si.dbCreated = true

if err := si.setCurrentDatabase(sidecar.GetIdentifier()); err != nil {
return err
}
Expand Down

0 comments on commit 61fd674

Please sign in to comment.