anchor.diff:  %%--------------------------------------------------------------------
   -spec links_delete(doc()) -> ok.
   links_delete(Doc = #document{key = Key, value = LinksMask = #links_mask{
  -    model = Model, tree_id = TreeId
  +    key = RoutingKey, model = Model, tree_id = TreeId
   }, deleted = false}) ->
       LocalTreeId = oneprovider:get_provider_id(),
       case TreeId of
  
positive.code:                 sync_change => true,
                  local_links_tree_id => LocalTreeId
              },
              Ctx3 = datastore_multiplier:extend_name(Key, Ctx2),
              save_links_mask(Ctx3, Doc);
          _ ->
              ok
  
negative.code: %% @end
  %%--------------------------------------------------------------------
  -spec save_links_mask(ctx(), doc()) -> ok.
  save_links_mask(Ctx, Doc = #document{key = Key,
      value = #links_mask{key = RoutingKey}}) ->
      {ok, _} = datastore_router:route(Ctx, RoutingKey, save, [
          Ctx, Key, Doc
      ]),
      ok.
  