From 6ce0097846b8a22de8d77de16d16f49b9af17a87 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 21 May 2018 10:28:46 -0700 Subject: [PATCH] add left padding fix https://github.com/chrislusf/seaweedfs/issues/654 --- weed/filer/mysql_store/mysql_store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }