Skip to content

Commit c056540

Browse files
authored
Replace a hard assert with a call to UpdateTrackedLimboDocuments. (#5363)
1 parent 89f8353 commit c056540

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Firestore/core/src/firebase/firestore/core/sync_engine.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,7 @@ ViewSnapshot SyncEngine::InitializeViewAndComputeSnapshot(const Query& query,
135135
view.ComputeDocumentChanges(query_result.documents().underlying_map());
136136
ViewChange view_change =
137137
view.ApplyChanges(view_doc_changes, synthesized_current_change);
138-
HARD_ASSERT(view_change.limbo_changes().empty(),
139-
"View returned limbo docs before target ack from the server.");
138+
UpdateTrackedLimboDocuments(view_change.limbo_changes(), target_id);
140139

141140
auto query_view =
142141
std::make_shared<QueryView>(query, target_id, std::move(view));

0 commit comments

Comments
 (0)