diff options
author | James Smith <james@floppy.org.uk> | 2012-02-06 17:03:26 +0000 |
---|---|---|
committer | James Smith <james@floppy.org.uk> | 2012-02-06 17:03:26 +0000 |
commit | c33334fc921894ee035e79591732188a08b3eed9 (patch) | |
tree | 0ea731f061658baac991c540e3aee19792457dd9 /activesupport/lib/active_support/cache | |
parent | af7dafff818094a6e02505fe7d6d87add6c2a7e8 (diff) | |
download | rails-c33334fc921894ee035e79591732188a08b3eed9.tar.gz rails-c33334fc921894ee035e79591732188a08b3eed9.tar.bz2 rails-c33334fc921894ee035e79591732188a08b3eed9.zip |
Change FILENAME_MAX_SIZE in FileStore to 228.
In order that temp filenames generated from it will fit in 255 chars. See https://github.com/rails/rails/issues/4907
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index 9460532af0..85c1225b7e 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -13,7 +13,7 @@ module ActiveSupport attr_reader :cache_path DIR_FORMATTER = "%03X" - FILENAME_MAX_SIZE = 230 # max filename size on file system is 255, minus room for timestamp and random characters appended by Tempfile (used by atomic write) + FILENAME_MAX_SIZE = 228 # max filename size on file system is 255, minus room for timestamp and random characters appended by Tempfile (used by atomic write) EXCLUDED_DIRS = ['.', '..'].freeze def initialize(cache_path, options = nil) |