filer store: sql update if any insert error happens

fix https://github.com/chrislusf/seaweedfs/issues/1673
This commit is contained in:
Chris Lu committed 2020-12-13 20:49:44 -08:00
1 parent 23280257df
commit 38fc89d041
2 files changed
+5 -3

No files matched your search

@@ -77,7 +77,8 @@ func (store *AbstractSqlStore) InsertEntry(ctx context.Context, entry *filer.Ent
}
if !strings.Contains(strings.ToLower(err.Error()), "duplicate") {
return fmt.Errorf("kv insert: %s", err)
// return fmt.Errorf("insert: %s", err)
// skip this since the error can be in a different language
}
// now the insert failed possibly due to duplication constraints