diff options
| author | Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.com> | 2023-10-13 02:29:55 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-12 14:29:55 -0700 |
| commit | 1cac5d983de408ced3c05a98a6745d1077e7c1e0 (patch) | |
| tree | 68afa8db614baa2ef7296276b32c15fc52d74149 /weed/operation/assign_file_id.go | |
| parent | edee91ef0eb7f7612ae961ac1d1ace2afbd92b87 (diff) | |
| download | seaweedfs-1cac5d983de408ced3c05a98a6745d1077e7c1e0.tar.xz seaweedfs-1cac5d983de408ced3c05a98a6745d1077e7c1e0.zip | |
fix: disallow file name too long when writing a file (#4881)
* fix: disallow file name too long when writing a file
* bool LongerName to MaxFilenameLength
---------
Co-authored-by: Konstantin Lebedev <9497591+kmlebedev@users.noreply.github.co>
Diffstat (limited to 'weed/operation/assign_file_id.go')
| -rw-r--r-- | weed/operation/assign_file_id.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/operation/assign_file_id.go b/weed/operation/assign_file_id.go index f6d0e0110..b6b870c3c 100644 --- a/weed/operation/assign_file_id.go +++ b/weed/operation/assign_file_id.go @@ -239,8 +239,9 @@ type StorageOption struct { Rack string DataNode string TtlSeconds int32 - Fsync bool VolumeGrowthCount uint32 + MaxFileNameLength uint32 + Fsync bool SaveInside bool } |
