avoid crashes Galera Cluster

https://github.com/chrislusf/seaweedfs/issues/2125
This commit is contained in:
Konstantin Lebedev
2021-06-15 18:12:39 +05:00
parent ebe971da2e
commit 6aa1a56ec8
18 changed files with 36 additions and 29 deletions

View File

@@ -38,7 +38,7 @@ func (gen *SqlGenMysql) GetSqlDelete(tableName string) string {
}
func (gen *SqlGenMysql) GetSqlDeleteFolderChildren(tableName string) string {
return fmt.Sprintf("DELETE FROM `%s` WHERE dirhash=? AND directory=?", tableName)
return fmt.Sprintf("DELETE FROM `%s` WHERE dirhash=? AND directory=? LIMIT ?", tableName)
}
func (gen *SqlGenMysql) GetSqlListExclusive(tableName string) string {