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
usrloc - fix contacts attrs not deleted #102
Conversation
when the contact is deleted using db_delete_ucontact_ruid (default) the uldb_attrs_delete is not called leaving the location_attrs with unwanted records created uldb_attrs_delete_ruid to be called by db_delete_ucontact_ruid redirected uldb_attrs_delete to uldb_attrs_delete_ruid also changed the places inside contact where uldb_attrs_delete was called to call new uldb_attrs_delete_ruid function
I think the patch is breaking db_delete_ucontact_addr() because it removes the sip domain condition for that case. I am talking by the next chunk in the patch:
Also, use the formatting as suggested in the commit guide lines, it keeps the changelog consistent and coherent: Respectively:
|
isn't ruid unique per contact ? not sure what i missed in the commit description, was it [EMPTY LINE] ? |
This reverts commit 91d2064.
when the contact is deleted using db_delete_ucontact_ruid (default) the uldb_attrs_delete is not called leaving the location_attrs with unwanted records created uldb_attrs_delete_ruid to be called by db_delete_ucontact_ruid redirected uldb_attrs_delete to uldb_attrs_delete_ruid when ul_db_ops_ruid == 1
@miconda please check |
The first patch seemed to break the deletion of the contact record, as the domain was no longer taken in consideration. The deletion of the contact record is done after the deletion of attrs inside db_delete_ucontact_addr(). The formatting was at least for the first line:
I will check the new patch when i get a chance. |
Last commit can be merged. Can you do it only for that one, without the previous ones and the revert? This should be backported at some point and it is good to have only one commit. |
Btw, if merging not working for a single patch, then just apply it manually to master -- you can get it from: |
merged manually |
when the contact is deleted using db_delete_ucontact_ruid (default)
the uldb_attrs_delete is not called leaving the location_attrs with unwanted records
created uldb_attrs_delete_ruid to be called by db_delete_ucontact_ruid
redirected uldb_attrs_delete to uldb_attrs_delete_ruid
also changed the places inside contact where uldb_attrs_delete was called to call new uldb_attrs_delete_ruid function