Skip to content

Commit

Permalink
server instance heartbeat failed to update to database
Browse files Browse the repository at this point in the history
Signed-off-by: myan <myan@redhat.com>
  • Loading branch information
yanmxa committed Jun 12, 2024
1 parent e2c8749 commit 24104b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dao/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (d *sqlInstanceDao) Replace(ctx context.Context, instance *api.ServerInstan

func (d *sqlInstanceDao) UpSert(ctx context.Context, instance *api.ServerInstance) (*api.ServerInstance, error) {
g2 := (*d.sessionFactory).New(ctx)
if err := g2.Omit(clause.Associations).Save(instance).Error; err != nil {
if err := g2.Unscoped().Omit(clause.Associations).Save(instance).Error; err != nil {
db.MarkForRollback(ctx, err)
return nil, err
}
Expand Down

0 comments on commit 24104b1

Please sign in to comment.