Skip to content

Commit a2ff50d

Browse files
committed
[server] Remove obsolete var: state.line_length
Reference: #268 See Also: #276
1 parent f373e06 commit a2ff50d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

couchdb/server/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def __init__(self, version=None, input=sys.stdin, output=sys.stdout,
5151
self._config = {}
5252
self._state = {
5353
'view_lib': None,
54-
'line_length': 0,
5554
'query_config': {},
5655
'functions': [],
5756
'functions_src': [],

couchdb/server/views.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ def reduce(server, reduce_funs, kvs, rereduce=False):
7979
:raises:
8080
- :exc:`~couchdb.server.exceptions.Error`
8181
If any Python exception occurs or reduce output is twice longer
82-
as state.line_length and reduce_limit is enabled in state.query_config
82+
than input key-value pairs.
83+
In the latter case, we consider it as ``reduce_overflow_error``.
8384
"""
8485
reductions = []
8586
_append = reductions.append
@@ -132,7 +133,8 @@ def rereduce(server, reduce_funs, values):
132133
:raises:
133134
- :exc:`~couchdb.server.exceptions.Error`
134135
If any Python exception occurs or reduce output is twice longer
135-
as state.line_length and reduce_limit is enabled in state.query_config
136+
than input key-value pairs.
137+
In the latter case, we consider it as ``reduce_overflow_error``.
136138
"""
137139
log.debug('Rereducing values:\n%s', values)
138140
return reduce(server, reduce_funs, values, rereduce=True)

0 commit comments

Comments
 (0)