anchor.diff:                      db_open_options = [sys_db]
                   },
                   {json_req, null},
  -                RepDb
  +                Db
               ),
               ChangesFeedFun(
                   fun({change, Change, _}, _) ->
  
positive.code:                 (_, _) ->
                      ok
                  end
              )
          end
      ),
      couch_db:close(RepDb),
      {Pid, couch_db:name(RepDb)}.
  
  
  has_valid_rep_id({Change}) ->
  
negative.code: 
  changes_feed_loop() ->
      {ok, RepDb} = ensure_rep_db_exists(),
      RepDbName = couch_db:name(RepDb),
      couch_db:close(RepDb),
      Server = self(),
      Pid = spawn_link(
          fun() ->
              {ok, Db} = couch_db:open_int(RepDbName, [sys_db]),
              ChangesFeedFun = couch_changes:handle_changes(
                  #changes_args{
                      include_docs = true,
  