Skip to content

Commit

Permalink
remove maintenance code duplicating notify's maintenance code (#3668)
Browse files Browse the repository at this point in the history
Reported by @seanwysor after crash:

```
<9847.5234.0> (21/21) refreshing database 'system_config'
archiving to /tmp/system_config.json
   archived 83 docs
<9847.5234.0> (20/21) refreshing database 'system_data'
<9847.5234.0> (19/21) refreshing database 'offnet'
<9847.5234.0> (18/21) refreshing database 'accounts'
Stderr Command failed: {'EXIT',{badarg,[{erlang,list_to_binary,[[{error,bad_name},"/couchdb/",<<"views/notify.json">>]],[]},{kapps_util,get_view_json,2,[{file,"src/kapps_util.erl"},{line,530}]},{kapps_maintenance,refresh,1,[{file,"src/kapps_maintenance.erl"},{line,315}]},{kapps_maintenance,refresh,3,[{file,"src/kapps_maintenance.erl"},{line,244}]},{kapps_maintenance,migrate,2,[{file,"src/kapps_maintenance.erl"},{line,141}]},{kapps_maintenance,migrate,1,[{file,"src/kapps_maintenance.erl"},{line,126}]},{rpc,'-handle_call_call/6-fun-0-',5,[{file,"rpc.erl"},{line,206}]}]}}
```
  • Loading branch information
fenollp authored and lazedo committed May 3, 2017
1 parent b90e737 commit 0827150
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/kazoo_apps/src/kapps_maintenance.erl
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ refresh(?KZ_ACCOUNTS_DB) ->
Views = [kapps_util:get_view_json('kazoo_apps', ?MAINTENANCE_VIEW_FILE)
,kapps_util:get_view_json('kazoo_apps', ?ACCOUNTS_AGG_VIEW_FILE)
,kapps_util:get_view_json('kazoo_apps', ?SEARCH_VIEW_FILE)
,kapps_util:get_view_json('notify', ?ACCOUNTS_AGG_NOTIFY_VIEW_FILE)
],
kapps_util:update_views(?KZ_ACCOUNTS_DB, Views, 'true'),
'ok';
Expand Down

0 comments on commit 0827150

Please sign in to comment.