-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Fix naive fileserver map diff algorithm #33875
Conversation
Naively comparing sorted dict keys does not guarantee that maps are equal. We must compare mtimes for filenames in case keys are the same to make sure there isnt a modified file.
Go Go Jenkins! |
1 similar comment
Go Go Jenkins! |
@terminalmage Could you take a look at this? |
:codeauthor: :email:`Joao Mesquita <jmesquita@sangoma.com>` | ||
''' | ||
|
||
# Import pytohn libs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python
This needs to be backported to 2015.8 once fixes have been made. |
Just a bump here @jmesquita - we'd love to get this in once you've addressed the comments above. |
@jmesquita Will you be able to get back to this to make the requested changes? |
I think we can make these fixes after the merge. I'm going to get this in and then fix it up. |
#34999 will need to be backported as well. |
What does this PR do?
Fixes fileserver map diffing algorithm
Previous Behavior
Fired fileserver event would say changed is False in case a file was modified and none was addded/removed.
New Behavior
Changed flag is now correct on the event
Tests written?
Yes
Naively comparing sorted dict keys does not guarantee that maps are equal. We
must compare mtimes for filenames in case keys are the same to make sure there
isnt a modified file.