File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
restli-resources/src/main/java/com/linkedin/metadata/restli Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -818,17 +818,13 @@ public Task<BackfillResult> backfillRelationshipTables(@ActionParam(PARAM_URNS)
818818
819819 private Task <BackfillResult > backfillRelationshipTables (@ ActionParam (PARAM_URNS ) @ Nonnull String [] urns ,
820820 @ ActionParam (PARAM_ASPECTS ) @ Nonnull String [] aspectNames , boolean isInternalModelsEnabled ) {
821-
822- // Use the shadow DAO if it exists, otherwise use the local DAO. It's a temporary solution for EGG migration.
823- BaseLocalDAO <INTERNAL_ASPECT_UNION , URN > dao = getShadowLocalDAO () != null ? getShadowLocalDAO () : getLocalDAO ();
824-
825821 final BackfillResult backfillResult = new BackfillResult ()
826822 .setEntities (new BackfillResultEntityArray ())
827823 .setRelationships (new BackfillResultRelationshipArray ());
828824
829825 for (String urn : urns ) {
830826 for (Class <? extends RecordTemplate > aspect : parseAspectsParam (aspectNames , isInternalModelsEnabled )) {
831- dao .backfillLocalRelationships (parseUrnParam (urn ), aspect ).forEach (relationshipUpdates -> {
827+ getLocalDAO () .backfillLocalRelationships (parseUrnParam (urn ), aspect ).forEach (relationshipUpdates -> {
832828 relationshipUpdates .getRelationships ().forEach (relationship -> {
833829 try {
834830 Urn source = (Urn ) relationship .getClass ().getMethod ("getSource" ).invoke (relationship );
You can’t perform that action at this time.
0 commit comments