diff --git a/weed/filer/mysql_store/mysql_store.go b/weed/filer/mysql_store/mysql_store.go index 4a8e889df..32cf8c567 100644 --- a/weed/filer/mysql_store/mysql_store.go +++ b/weed/filer/mysql_store/mysql_store.go @@ -198,7 +198,7 @@ CREATE TABLE IF NOT EXISTS %s ( func (s *MySqlStore) createTables(db *sql.DB, tableName string, postfix int) error { var realTableName string if s.isSharding { - realTableName = fmt.Sprintf("%s_%4d", tableName, postfix) + realTableName = fmt.Sprintf("%s_%04d", tableName, postfix) } else { realTableName = tableName }