Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-10810: Export a file from a remote storage #9376

Merged
merged 9 commits into from
May 18, 2020

Conversation

avichainoach
Copy link
Contributor

@avichainoach avichainoach commented Apr 28, 2020

This change is Reviewable

list($kalturaFileSync, $local) = kFileSyncUtils::getReadyFileSyncForKey($key, false, false);

list($kalturaFileSync, $local) = kFileSyncUtils::getReadyFileSyncForKey($key, true, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid getting from remote storage if storageDc is locally

    $fetchFromRemote = true;
    if(in_array($this->getId(),kDataCenterMgr::getDcIds()))
    {
        $fetchFromRemote = false;
    }

	list($kalturaFileSync, $local) = kFileSyncUtils::getReadyFileSyncForKey($key, $fetchFromRemote, false);

@MosheMaorKaltura
Copy link
Contributor

reviewed

@avichainoach avichainoach changed the base branch from Propus-16.1.0 to Propus-16.3.0 May 18, 2020 17:37
@avichainoach avichainoach merged commit 03dde31 into Propus-16.3.0 May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants