mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
weed filer: increase default mysql/postgres dir or name length to 65535
This commit is contained in:
parent
b4c276263f
commit
2a52e70a41
|
@ -73,8 +73,8 @@ dir = "." # directory to store level db files
|
||||||
[mysql]
|
[mysql]
|
||||||
# CREATE TABLE IF NOT EXISTS filemeta (
|
# CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field',
|
||||||
# name VARCHAR(1000) COMMENT 'directory or file name',
|
# name VARCHAR(65535) COMMENT 'directory or file name',
|
||||||
# directory VARCHAR(4096) COMMENT 'full path to parent directory',
|
# directory VARCHAR(65535) COMMENT 'full path to parent directory',
|
||||||
# meta BLOB,
|
# meta BLOB,
|
||||||
# PRIMARY KEY (dirhash, name)
|
# PRIMARY KEY (dirhash, name)
|
||||||
# ) DEFAULT CHARSET=utf8;
|
# ) DEFAULT CHARSET=utf8;
|
||||||
|
@ -90,8 +90,8 @@ connection_max_open = 100
|
||||||
[postgres]
|
[postgres]
|
||||||
# CREATE TABLE IF NOT EXISTS filemeta (
|
# CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
# dirhash BIGINT,
|
# dirhash BIGINT,
|
||||||
# name VARCHAR(1000),
|
# name VARCHAR(65535),
|
||||||
# directory VARCHAR(4096),
|
# directory VARCHAR(65535),
|
||||||
# meta bytea,
|
# meta bytea,
|
||||||
# PRIMARY KEY (dirhash, name)
|
# PRIMARY KEY (dirhash, name)
|
||||||
# );
|
# );
|
||||||
|
|
|
@ -9,8 +9,8 @@ $PGHOME/bin/psql --username=postgres --password seaweedfs
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS filemeta (
|
CREATE TABLE IF NOT EXISTS filemeta (
|
||||||
dirhash BIGINT,
|
dirhash BIGINT,
|
||||||
name VARCHAR(1000),
|
name VARCHAR(65535),
|
||||||
directory VARCHAR(4096),
|
directory VARCHAR(65535),
|
||||||
meta bytea,
|
meta bytea,
|
||||||
PRIMARY KEY (dirhash, name)
|
PRIMARY KEY (dirhash, name)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue