Ignore other config changes
Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/1a0ae3eb Tree: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/tree/1a0ae3eb Diff: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/diff/1a0ae3eb Branch: refs/heads/import Commit: 1a0ae3eb2dbb095d59719bf4337bb71567e8acbe Parents: 8740fb4 Author: Adam Kocoloski <[email protected]> Authored: Thu Feb 28 16:05:47 2013 -0500 Committer: Adam Kocoloski <[email protected]> Committed: Thu Feb 28 16:05:47 2013 -0500 ---------------------------------------------------------------------- src/mem3_shards.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-mem3/blob/1a0ae3eb/src/mem3_shards.erl ---------------------------------------------------------------------- diff --git a/src/mem3_shards.erl b/src/mem3_shards.erl index 0300ab3..99e5f16 100644 --- a/src/mem3_shards.erl +++ b/src/mem3_shards.erl @@ -107,7 +107,9 @@ handle_config_change("mem3", "shard_cache_size", SizeList, _, _) -> Size = list_to_integer(SizeList), {ok, gen_server:call(?MODULE, {set_max_size, Size}, infinity)}; handle_config_change("mem3", "shard_db", _DbName, _, _) -> - {ok, gen_server:call(?MODULE, shard_db_changed, infinity)}. + {ok, gen_server:call(?MODULE, shard_db_changed, infinity)}; +handle_config_change(_, _, _, _, _) -> + {ok, nil}. init([]) -> ets:new(?SHARDS, [bag, protected, named_table, {keypos,#shard.dbname}]),
