Skip to content

Commit e613410

Browse files
committed
Remove redundant call to Query::find_all
1 parent 0b19887 commit e613410

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/realm/object-store/impl/results_notifier.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,9 @@ void ResultsNotifier::run()
177177
return;
178178
}
179179

180-
m_query->sync_view_if_needed();
181-
m_run_tv = m_query->find_all();
180+
m_run_tv = TableView(*m_query, size_t(-1));
181+
// Syncing will be done here
182182
m_run_tv.apply_descriptor_ordering(m_descriptor_ordering);
183-
m_run_tv.sync_if_needed();
184183
m_last_seen_version = std::move(new_versions);
185184

186185
calculate_changes();

0 commit comments

Comments
 (0)