summaryrefslogtreecommitdiff
path: root/src/mem3_cache.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem3_cache.erl')
-rw-r--r--src/mem3_cache.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem3_cache.erl b/src/mem3_cache.erl
index b17db1a2..1d1bbe9b 100644
--- a/src/mem3_cache.erl
+++ b/src/mem3_cache.erl
@@ -69,7 +69,7 @@ changes_callback(start, _) ->
changes_callback({stop, EndSeq}, _) ->
exit({seq, EndSeq});
changes_callback({change, {Change}, _}, _) ->
- DbName = couch_util:get_value(id, Change),
+ DbName = couch_util:get_value(<<"id">>, Change),
case couch_util:get_value(deleted, Change, false) of
true ->
ets:delete(partitions, DbName);
@@ -82,6 +82,6 @@ changes_callback({change, {Change}, _}, _) ->
ets:insert(partitions, mem3_util:build_shards(DbName, Doc))
end
end,
- {ok, couch_util:get_value(seq, Change)};
+ {ok, couch_util:get_value(<<"seq">>, Change)};
changes_callback(timeout, _) ->
{ok, nil}.