anchor.diff:          false -> ok
       end,
       case State#st.committed of
  -        true -> erlang:send_after(Delay, self(), commit);
  +        true -> erlang:send_after(commit_delay(), self(), commit);
           false -> ok
       end,
       State#st{
  
positive.code:             % forever out of sync with the database. But a crash before we
              % commit these changes, no big deal, we only lose incremental
              % changes since last committal.
              erlang:send_after(Delay, self(), commit),
              {noreply, State}
      end;
  handle_info(maybe_close, State) ->
  
negative.code:         "false" -> false;
          undefined -> undefined
      end.
  
  commit_delay() ->
      config:get_integer("query_server_config", "commit_freq", 5) * 1000.
  
  
  -ifdef(TEST).
  -include_lib("couch/include/couch_eunit.hrl").
  