Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions go/pkg/sysdb/metastore/db/dao/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,8 @@ func (s *collectionDb) InsertOnConflictDoNothing(in *dbmodel.Collection) (didIns
DoNothing: true,
}).Create(&in)
if tx.Error != nil {
log.Error("InsertOnConflictDoNothing collection failed", zap.Error(err))
return false, err
log.Error("InsertOnConflictDoNothing collection failed", zap.Error(tx.Error))
return false, tx.Error
}
if tx.RowsAffected == 0 {
log.Debug("InsertOnConflictDoNothing collection already exists")
Expand Down
Loading