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-10943: periodic export - update lastId when there're no hits in … #9456

Merged
merged 1 commit into from
Jun 3, 2020

Conversation

avichainoach
Copy link
Contributor

@avichainoach avichainoach commented May 31, 2020

…range


This change is Reviewable

{
$done = true;
$lastId = end($fileSyncs)->getId();
Copy link
Contributor

Choose a reason for hiding this comment

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

$done is useless - need to remove from the while()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is one use in $done.
The query does not contain ''createdAtLessThanOrEqual".
We check that later in 'filterFileSyncs'.
if we find file syncs that are valid for this filter, we don't want to continue in the loop, but the lastID will be smaller than maxId.
Hence the $done.

@avichainoach avichainoach changed the base branch from Propus-16.3.0 to Propus-16.4.0 June 1, 2020 07:35
@MosheMaorKaltura
Copy link
Contributor

reviewed

@avichainoach avichainoach merged commit 2721c37 into Propus-16.4.0 Jun 3, 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