iilyak commented on a change in pull request #477: Add LRU for view groups
URL: https://github.com/apache/couchdb/pull/477#discussion_r119950440
 
 

 ##########
 File path: src/couch_index/src/couch_index_server.erl
 ##########
 @@ -187,18 +285,20 @@ code_change(_OldVsn, State, _Extra) ->
     {ok, State}.
 
 
-handle_config_change("couchdb", "index_dir", RootDir, _, RootDir) ->
-    {ok, RootDir};
-handle_config_change("couchdb", "view_index_dir", RootDir, _, RootDir) ->
-    {ok, RootDir};
+handle_config_change("couchdb", "index_dir", RootDir, _, 
#st{root_dir=RootDir}=State) ->
 
 Review comment:
   It is not quite right. The state here is the value we pass to 
[`config:listen_for_changes/2`](https://github.com/apache/couchdb/pull/477/files#diff-3f723e40663b52d70b47cbd302216517R193)
 
----------------------------------------------------------------
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