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

fix for critical bug in query handover and minor bug in TableView::re_sort, and improvements to tests #1109

Merged
merged 3 commits into from
Sep 4, 2015

Conversation

finnschiermer
Copy link
Contributor

When exporting a Query (as part of handover) we accidentally leaked table references which should have stayed within the exporting shared group. Depending upon timing, this may lead to double deletion, wrong results af import or crashes.

The minor bug in re_sort() could cause imperative tableviews to grow (but only with detached refs) as a side effect of re-sorting. Unlikely to have been seen by anyone, as re_sort() is not used publicly

@finnschiermer finnschiermer changed the title a bugfix in sort and improvements to tests fix for critical bug in query handover and minor bug in TableView::re_sort, and improvements to tests Sep 3, 2015
@realm-ci
Copy link
Contributor

realm-ci commented Sep 3, 2015

@finnschiermer finnschiermer mentioned this pull request Sep 3, 2015
@@ -97,10 +97,6 @@ Query::Query(const Query& copy, const TCopyExpressionTag&)

void Query::copy_nodes(const Query& source)
{
m_table = source.m_table;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great to have these removed, they seem redundant for all calls to copy_nodes

@rrrlasse
Copy link
Contributor

rrrlasse commented Sep 4, 2015

👍

finnschiermer added a commit that referenced this pull request Sep 4, 2015
fix for critical bug in query handover and minor bug in TableView::re_sort, and improvements to tests
@finnschiermer finnschiermer merged commit 7e6d895 into master Sep 4, 2015
@danielpovlsen danielpovlsen deleted the fsa_fix_handover_tests_2 branch September 11, 2015 08:03
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants