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

remove slapi_attr_init/done in dn normalize code #510

Closed
389-ds-bot opened this issue Sep 12, 2020 · 4 comments
Closed

remove slapi_attr_init/done in dn normalize code #510

389-ds-bot opened this issue Sep 12, 2020 · 4 comments
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/510


systemtap and callgrind analysis show a lot of time spent in this code in both thread contention and malloc/free - we need to find a less malloc/free and lock/mutex intensive way to determine if the DN RDN attribute has DN syntax

@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.3.0 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2012-11-12 18:53:02

The locking problem should be resolved by ticket 504.505.
The malloc/free could be avoided by replacing slapi_attr_init/done by a call to attrsyntax_get_by_name() since the attr is not needed. It could be done in a function is_dn_syntax(attrtypename).

@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2012-11-16 19:38:14

attachment
0001-Fix-for-ticket-510.patch

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-11-17 00:28:05

When you add an new slapi-plugin api, could you add the description, as well in slapi-plugin.h? Something like this?

/**
 * Adds a value to an attribute.
 *
 * \param a The attribute that will contain the values.
 * \param v Value to be added to the attribute.
 * \return Always returns 0.
 * \see slapi_attr_first_value()
 * \see slapi_attr_next_value()
 * \see slapi_attr_get_numvalues()
 * \see slapi_attr_value_cmp()
 * \see slapi_attr_value_find()
 */

@389-ds-bot
Copy link
Author

Comment from lkrispen (@elkris) at 2017-02-11 23:08:18

Metadata Update from @elkris:

  • Issue assigned to elkris
  • Issue set to the milestone: 1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant