anchor.diff:    ok.
   
   
  -do_update_docs(DocBuckets, Db =  #db{id=DbId, store=Store, last_rid=LastRid }) ->
  +do_update_docs(DocBuckets, Db =  #db{id=DbId, store=Store }) ->
     %% try to collect a maximum of updates at once
     DocBuckets2 = collect_updates(DbId, DocBuckets),
     erlang:put(num_docs_updated, maps:size(DocBuckets2)),
   
     {Updates, NewRid, _, OldDocs} = merge_revtrees(DocBuckets2, Db),
  -
  -  %% update resource counter
  -  if
  -    NewRid /= LastRid ->
  -      ok = rocksdb:put(
  -        Store,
  -        barrel_keys:db_meta_key(<<"last_rid">>),
  -        term_to_binary(NewRid),
  -        []
  -      );
  -    true -> ok
  -  end,
   
     lists:foldl(
       fun
  
positive.code:       Error
    end.
  
  
  last_sequence(Store) ->
    Prefix = barrel_keys:prefix(seq),
  
negative.code:       Val = binary_to_term(ValBin),
        {ok, Meta#{ Key => Val }}
      end,
      #{<<"docs_count">> => 0,
        <<"system_docs_count">> => 0},
      []
    ),
    Meta#{ <<"last_rid" >> => last_rid(Store),
           <<"updated_seq">> => last_sequence(Store) }.
  
  init_properties() ->
    Props = [{num_docs_updated, 0}],
  