couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [couchdb] 09/25: Include the view sig in the job
Date Tue, 23 Jul 2019 20:13:18 GMT
This is an automated email from the ASF dual-hosted git repository.

davisp pushed a commit to branch prototype/views
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit a4be1fb4f9bde8f04abe356578fa1005d1634369
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
AuthorDate: Wed Jul 17 10:42:16 2019 -0500

    Include the view sig in the job
    
    This saves us from having to try and parse out the sig from the job id.
    We'll need this to assert that we're building the right version of the
    view since the ddoc could be updated between the view job creation and
    when the job actually starts.
---
 src/couch_views/src/couch_views_jobs.erl | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/couch_views/src/couch_views_jobs.erl b/src/couch_views/src/couch_views_jobs.erl
index d9c5157..9714b29 100644
--- a/src/couch_views/src/couch_views_jobs.erl
+++ b/src/couch_views/src/couch_views_jobs.erl
@@ -81,12 +81,14 @@ get_id(DbName, Sig) ->
 
 create_job_data(Db, Mrst) ->
     #mrst{
-        idx_name = DDocId
+        idx_name = DDocId,
+        sig = Sig
     } = Mrst,
 
     #{
         db_name => fabric2_db:name(Db),
-        ddoc_id => DDocId
+        ddoc_id => DDocId,
+        sig => Sig
     }.
 
 


Mime
View raw message