diff options
| author | John Christopher Anderson <jchris@apache.org> | 2009-05-04 22:06:12 +0000 |
|---|---|---|
| committer | John Christopher Anderson <jchris@apache.org> | 2009-05-04 22:06:12 +0000 |
| commit | 2d0503e3bb0c50c99670c01272ee8c1fe7710f8d (patch) | |
| tree | abde95fef91189736e89c4ea5c3ae277e6ff46e7 /share/server/loop.js | |
| parent | 7c05a60479bacc7acbf6f704285a4ab2981ba02b (diff) | |
reduce_limit error is thrown when the reduce function output is not small enough compared to the input. Errors can be switched off using the config API.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@771466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/server/loop.js')
| -rw-r--r-- | share/server/loop.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/server/loop.js b/share/server/loop.js index 170a8dc8..db6a9702 100644 --- a/share/server/loop.js +++ b/share/server/loop.js @@ -28,7 +28,7 @@ try { // // Responses are json values followed by a new line ("\n") -var cmd, cmdkey; +var line, cmd, cmdkey; var dispatch = { "reset" : State.reset, @@ -43,7 +43,9 @@ var dispatch = { "list_tail" : Render.listTail }; -while (cmd = eval(readline())) { +while (line = eval(readline())) { + cmd = eval(line) + line_length = line.length try { cmdkey = cmd.shift(); if (dispatch[cmdkey]) { |
