From ec9b5fd81dc74c7f69d221fa529be1c2543a12a0 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 21 Jul 2015 12:58:36 +0800 Subject: Bug 1180572 - create attachment_storage parameter --- Bugzilla/Config/Attachment.pm | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'Bugzilla/Config') diff --git a/Bugzilla/Config/Attachment.pm b/Bugzilla/Config/Attachment.pm index e6e3b7f3d..cf87f4c89 100644 --- a/Bugzilla/Config/Attachment.pm +++ b/Bugzilla/Config/Attachment.pm @@ -66,19 +66,12 @@ sub get_param_list { checker => \&check_maxattachmentsize }, - # The maximum size (in bytes) for patches and non-patch attachments. - # The default limit is 1000KB, which is 24KB less than mysql's default - # maximum packet size (which determines how much data can be sent in a - # single mysql packet and thus how much data can be inserted into the - # database) to provide breathing space for the data in other fields of - # the attachment record as well as any mysql packet overhead (I don't - # know of any, but I suspect there may be some.) - { - name => 'maxlocalattachment', - type => 't', - default => '0', - checker => \&check_numeric + name => 'attachment_storage', + type => 's', + choices => ['database', 'filesystem'], + default => 'database', + checker => \&check_multi } ); return @param_list; } -- cgit v1.2.3-24-g4f1b