You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2019/07/23 21:54:54 UTC
[couchdb] 09/31: Include the view sig in the job
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 <pa...@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
}.