You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2019/10/03 19:03:03 UTC

[couchdb] 01/01: Fix timeout in couch_views

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch prototype/fdb-layer-couch-jobs-timeouts
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9a6d211f78cc3dbbdd42959917e9ff4ca347ee04
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Thu Oct 3 15:01:50 2019 -0400

    Fix timeout in couch_views
    
    set_type_timeout takes seconds as the argument but we gave it milliseconds
    
    branch prototype/fdb-layer-couch-jobs-timeouts # Changes to be committed: #
    modified: src/couch_views/src/couch_views_jobs.erl #
---
 src/couch_views/src/couch_views_jobs.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_views/src/couch_views_jobs.erl b/src/couch_views/src/couch_views_jobs.erl
index 16fc410..87e4fea 100644
--- a/src/couch_views/src/couch_views_jobs.erl
+++ b/src/couch_views/src/couch_views_jobs.erl
@@ -29,7 +29,7 @@
 
 
 set_timeout() ->
-    couch_jobs:set_type_timeout(?INDEX_JOB_TYPE, 6 * 1000).
+    couch_jobs:set_type_timeout(?INDEX_JOB_TYPE, 6).
 
 
 build_view(TxDb, Mrst, UpdateSeq) ->