File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
database/src/desktop/view Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -415,12 +415,13 @@ ViewCache ViewProcessor::ApplyServerOverwrite(
415
415
// Apply the server overwrite to the appropriate child.
416
416
Path child_change_path = change_path.PopFrontDirectory ();
417
417
// Get a copy of the child (if present) so that it can be mutated.
418
- Variant new_child_node = old_server_snap.variant ();
418
+ Variant new_child_node =
419
+ VariantGetChild (&old_server_snap.variant (), child_key);
419
420
VariantUpdateChild (&new_child_node, child_change_path, changed_snap);
420
421
if (IsPriorityKey (child_key.str ())) {
421
422
// If this is a priority node, update the priority on the indexed node.
422
- new_server_cache = server_filter-> UpdatePriority (
423
- old_server_snap. indexed_variant () , new_child_node);
423
+ new_server_cache =
424
+ server_filter-> UpdatePriority (new_server_cache , new_child_node);
424
425
} else {
425
426
// If this is a regular update, the update through the filter to make sure
426
427
// we get only the values that are not filtered by the query spec.
You can’t perform that action at this time.
0 commit comments