-
Notifications
You must be signed in to change notification settings - Fork 247
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
D-Bus: Do not use timestamp optimization on "files" provider. #6343
Conversation
* Therefore the last update flag is not updated if no file was touched | ||
* and we cannot use this optimization. | ||
*/ | ||
if (strcasecmp(domain->provider, "files") == 0) { |
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.
Would it be possible to use is_files_provider()
from util.h
?
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.
Nice. Didn't know that function existed. Thanks.
ebe4c79
to
0f10d8e
Compare
@aplopez Can you please write test for it? |
Otherwise ack to the code. |
0f10d8e
to
4f8f3c2
Compare
Added a as requested by @pbrezina |
#define TESTS_PATH "tp_" BASE_FILE_STEM | ||
#define TEST_CONF_DB "test_responder_cache_req_conf.ldb" | ||
#define TEST_DOM_NAME "responder_cache_req_test" | ||
#define TEST_ID_PROVIDER "ldap" | ||
#define TEST_ID_PROVIDER LDAP_ID_PROVIDER |
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.
Since you defined both FILES_ID_PROVIDER and LDAP_ID_PROVIDER then I think you can just delete this macro and replace it with LDAP_ID_PROVIDER?
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.
Done
Avoid requesting only the latest updates when using the "files" provider as it only updates the cache if /etc/files or /etc/group is touched. Added a test for this situation. Resolves: SSSD#6342
4f8f3c2
to
7613d46
Compare
Avoid requesting only the latest updates when using the "files" provider as it only updates the cache if /etc/files or /etc/group is touched.
Resolves: #6342