Allow per project maxObjectSizeLimit.

Project owners can define receive.maxObjectSizeLimit in their
project.config in order to further restrict the global
receive.maxObjectSizeLimit setting from etc/gerrit.config.  The project
specific maxObjectSizeLimit is only honored if smaller than the global
maxObjectSizeLimit, otherwise it is ignored.

Change-Id: Ia14354e0c9b6bfb4fa62295162e8f2c127b09997
This commit is contained in:
Sasa Zivkov
2013-06-28 17:07:55 +02:00
parent 72e949f48b
commit 5a708a8b45
4 changed files with 32 additions and 1 deletions

View File

@@ -216,6 +216,10 @@ public class ProjectState {
return config;
}
public long getMaxObjectSizeLimit() {
return config.getMaxObjectSizeLimit();
}
/** Get the sections that pertain only to this project. */
List<SectionMatcher> getLocalAccessSections() {
List<SectionMatcher> sm = localAccessSections;