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

usrloc - fix contacts attrs not deleted #102

Closed
wants to merge 3 commits into from

Conversation

lazedo
Copy link
Contributor

@lazedo lazedo commented Feb 25, 2015

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

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
@miconda
Copy link
Member

miconda commented Feb 25, 2015

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:

@@ -1389,27 +1381,7 @@ int db_delete_ucontact_addr(ucontact_t* _c)

Also, use the formatting as suggested in the commit guide lines, it keeps the changelog consistent and coherent:

Respectively:

module_name: short description of the patch
[EMPTY LINE]
more description of the patch

@lazedo
Copy link
Contributor Author

lazedo commented Feb 25, 2015

isn't ruid unique per contact ?

not sure what i missed in the commit description, was it [EMPTY LINE] ?

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
@lazedo
Copy link
Contributor Author

lazedo commented Feb 25, 2015

@miconda please check

@miconda
Copy link
Member

miconda commented Feb 25, 2015

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:

module_name: ...

I will check the new patch when i get a chance.

@miconda
Copy link
Member

miconda commented Feb 27, 2015

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.

@miconda
Copy link
Member

miconda commented Feb 27, 2015

Btw, if merging not working for a single patch, then just apply it manually to master -- you can get it from:

@lazedo
Copy link
Contributor Author

lazedo commented Feb 27, 2015

merged manually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants