Bug 82651 - Content size limit (4MB Sphinx)
git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1401 6955db30-a419-402b-8a0d-67ecbb4d7f56remotes/github/custis
parent
72934bf6cd
commit
160233f758
|
@ -381,7 +381,8 @@ class CheckinDatabase:
|
||||||
if len(content):
|
if len(content):
|
||||||
# Maximum field size limit for Sphinx is 4MB
|
# Maximum field size limit for Sphinx is 4MB
|
||||||
if len(content) > self.content_max_size:
|
if len(content) > self.content_max_size:
|
||||||
props['content'] = content[0:self.content_max_size]
|
content = content[0:self.content_max_size]
|
||||||
|
props['content'] = content
|
||||||
# Now, stored MIME type is only needed while searching
|
# Now, stored MIME type is only needed while searching
|
||||||
# It is guessed again when the file is displayed
|
# It is guessed again when the file is displayed
|
||||||
props['mimetype'] = commit.GetMimeType()
|
props['mimetype'] = commit.GetMimeType()
|
||||||
|
|
Loading…
Reference in New Issue