-
Notifications
You must be signed in to change notification settings - Fork 84
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
remove ldbm_back_entry_release #2546
Comments
Comment from lkrispen (@elkris) at 2017-12-05 17:39:41 This dead code is also the only user of ldbm_back_next_search_entry_ext with useextension set to 1.
so we could merge these two and simplify by eliminating use_extension |
Comment from lkrispen (@elkris) at 2017-12-05 17:39:41 Metadata Update from @elkris:
|
Comment from mreynolds (@mreynolds389) at 2018-02-13 18:43:40 Metadata Update from @mreynolds389:
|
Comment from vashirov (@vashirov) at 2020-02-19 16:55:06 Metadata Update from @vashirov:
|
Comment from mreynolds (@mreynolds389) at 2020-07-21 17:51:11 Metadata Update from @mreynolds389:
|
Comment from mreynolds (@mreynolds389) at 2020-07-21 17:51:12 Issue linked to Bugzilla: Bug 1859282 |
Comment from mreynolds (@mreynolds389) at 2020-07-24 21:02:31 Metadata Update from @mreynolds389:
|
Comment from mreynolds (@mreynolds389) at 2020-07-24 21:53:04 |
Comment from mreynolds (@mreynolds389) at 2020-07-27 20:10:22 Commit c6aae1e5 relates to this ticket |
Comment from mreynolds (@mreynolds389) at 2020-07-27 20:10:56 Metadata Update from @mreynolds389:
|
Comment from vashirov (@vashirov) at 2020-07-28 09:46:12 This broke automember tests and some basic tests: https://fedorapeople.org/groups/389ds/ci/nightly/2020/07/28/report-389-ds-base-1.4.4.4-20200727gitc6aae1e.fc32.x86_64.html |
Comment from vashirov (@vashirov) at 2020-07-28 09:46:12 Metadata Update from @vashirov:
|
Comment from mreynolds (@mreynolds389) at 2020-07-28 15:46:55 Turns out we do use ldbm_back_entry_release() afterall in opshared.c:
Adding that code back... |
Comment from elkris at 2020-07-28 16:48:12 Ok, I missed this usage when creating the ticket, but I think it is still not clean. The call is in opshared.c when handling the return code of be_search - and it does operate on the entry cache, which it should not know of. |
Comment from mreynolds (@mreynolds389) at 2020-07-28 17:02:05 Sorry, yeah I'm trying to clean it all up - I am not adding it back as it was... I found some other pblock params that are not used (or not used as intended):
But I will open another ticket to look at these...
I will look into this, thanks |
Comment from mreynolds (@mreynolds389) at 2020-07-28 20:34:43 So we call cache_return_target_entry() in opshared.c when be_search fails, but also when it succeeds. When it succeeds we do checks for psearches, and how results are sent back, and depending on the error and how things happen we "release" the target or we don't. It's not straightforward. To try and move this "cache returning" would require changes to the search function and to the result handling. I feel, in this ticket, we would be trying to fix something that is not broken, and the entry cache is fragile enough. Maybe if we rework the entry cache at a later date we can look into this when we go to make bigger changes to the design? Anyway I was able to do more cleanup, and I'm going to update the PR... |
Comment from mreynolds (@mreynolds389) at 2020-07-28 20:34:43 Metadata Update from @mreynolds389:
|
Comment from mreynolds (@mreynolds389) at 2020-07-28 20:43:59 |
Comment from elkris at 2020-07-28 22:03:54
yes, there is no real need to do it, can be part of another cleanup |
Comment from mreynolds (@mreynolds389) at 2020-07-29 17:59:29 Commit b7865bf1 relates to this ticket |
Comment from mreynolds (@mreynolds389) at 2020-07-29 18:31:14 Metadata Update from @mreynolds389:
|
Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/49487
This function is never used.
There are calls in a section with
#if 0
and defining an iterate_with_lookahead
but this is commented out since 2005, so we could remove it completely
The text was updated successfully, but these errors were encountered: