Remove references to margaret
authorRobert Newson <rnewson@apache.org>
Thu, 19 Dec 2013 18:16:58 +0000 (18:16 +0000)
committerPaul J. Davis <paul.joseph.davis@gmail.com>
Fri, 17 Jan 2014 21:41:17 +0000 (13:41 -0800)
src/ddoc_cache.erl

index ec119f1..685a368 100644 (file)
@@ -45,10 +45,8 @@ open(DbName, DDocId) when is_binary(DDocId) ->
 open(Key) ->
     try ets_lru:lookup_d(?CACHE, Key) of
         {ok, _} = Resp ->
-            margaret_counter:increment([ddoc_cache, hit]),
             Resp;
         _ ->
-            margaret_counter:increment([ddoc_cache, miss]),
             case gen_server:call(?OPENER, {open, Key}, infinity) of
                 {open_ok, Resp} ->
                     Resp;
@@ -61,7 +59,6 @@ open(Key) ->
             end
     catch
         error:badarg ->
-            margaret_counter:increment([ddoc_cache, recovery]),
             recover(Key)
     end.