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

MANTA-5334 timer for MANTA-5332 could be improved for max objects and multiple shards #121

Merged
merged 2 commits into from Jul 2, 2020

Conversation

rjloura
Copy link
Contributor

@rjloura rjloura commented Jul 1, 2020

No description provided.

Comment on lines 2129 to 2136
if let Some(st) = *start_time {
info!(
"Evacuate Job object movement time: {} seconds",
st.elapsed().as_secs()
);
}

*start_time = None;

Choose a reason for hiding this comment

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

  2130                         if let Some(st) = start_time.take() {
  2131                             info!(
  2132                                 "Evacuate Job object movement time: {} seconds",
  2133                                 st.elapsed().as_secs()
  2134                             );
  2135                         }

I think something like this would be cleaner and allows you to ditch the *start_time = None bit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good tip!

@bahamas10
Copy link

👍 I pulled the code and looked through it... this change makes sense. I also looked into .take() as @papertigers mentioned and it seems like that may be a slightly cleaner/optimal approach.

@rjloura rjloura requested a review from papertigers July 2, 2020 20:23
Copy link

@bahamas10 bahamas10 left a comment

Choose a reason for hiding this comment

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

LGTM

@rjloura rjloura merged commit bf8a940 into master Jul 2, 2020
@rjloura rjloura deleted the manta-5334_timer_change branch July 8, 2020 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants