eiri commented on a change in pull request #597: Move view index files to 
.view_deleted when db is deleted
URL: https://github.com/apache/couchdb/pull/597#discussion_r125804451
 
 

 ##########
 File path: src/couch_index/src/couch_index_server.erl
 ##########
 @@ -246,10 +247,10 @@ rem_from_ets(DbName, Sig, DDocId, Pid) ->
 
 
 handle_db_event(DbName, created, St) ->
-    gen_server:cast(?MODULE, {reset_indexes, DbName}),
+    gen_server:cast(?MODULE, {reset_indexes, [{db_name, DbName}, {context, 
[]}]}),
 
 Review comment:
   This is not quite right. You are setting context here to an empty list, but 
valid values for it only `compaction` and `delete`. You need to avoid `context` 
attribute here at all and let it be a default.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to