Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

add left padding

Chris Lu6ce0097846b8
diff --git a/weed/filer/mysql_store/mysql_store.go b/weed/filer/mysql_store/mysql_store.go
index 4a8e889df6..32cf8c5674 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
}