diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-05-26 14:08:55 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-05-26 14:08:55 -0700 |
| commit | 955eae3500ef64be7ff4cd33396253d0da333633 (patch) | |
| tree | 404ee823d7ca1e53860711779176f47f737964d0 /weed/filer2/configuration.go | |
| parent | 2da84ed33115a4f2908479c86442b1936ed1b616 (diff) | |
| download | seaweedfs-955eae3500ef64be7ff4cd33396253d0da333633.tar.xz seaweedfs-955eae3500ef64be7ff4cd33396253d0da333633.zip | |
this works great and support long file names
Diffstat (limited to 'weed/filer2/configuration.go')
| -rw-r--r-- | weed/filer2/configuration.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/weed/filer2/configuration.go b/weed/filer2/configuration.go index ddd06a568..910ddcbbc 100644 --- a/weed/filer2/configuration.go +++ b/weed/filer2/configuration.go @@ -25,12 +25,15 @@ dir = "." # directory to store level db files # # need to choose or create a database. # need to manually create a table "filemeta". +# # CREATE TABLE IF NOT EXISTS filemeta ( -# directory VARCHAR(512) NOT NULL DEFAULT "" COMMENT 'full path to parent directory', -# name VARCHAR(512) NOT NULL DEFAULT "" COMMENT 'directory or file name', +# dirhash BINARY(16) COMMENT 'MD5 hash value of directory field', +# name VARCHAR(1000) NOT NULL DEFAULT "" COMMENT 'directory or file name', +# directory VARCHAR(4096) NOT NULL DEFAULT "" COMMENT 'full path to parent directory', # meta BLOB, -# PRIMARY KEY (directory, name) +# PRIMARY KEY (dirhash, name) # ) DEFAULT CHARSET=utf8; +# enabled = true server = "localhost" port = 3306 |
