Skip to content

Commit

Permalink
Build apteryx-sync tree as a proper tree
Browse files Browse the repository at this point in the history
The previous code was putting full paths in just below the root node.
This hampers performance, so build the tree properly.
  • Loading branch information
blairsteven committed Nov 29, 2024
1 parent ac8aac2 commit 67a6ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncer.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ sync_tree_process (GNode *node, gpointer arg)
ts = apteryx_timestamp (path);
if (ts && ts > params->ts)
{
APTERYX_LEAF (params->root, strdup (path + 1), (char *) node->data);
apteryx_path_to_node (params->root, path, node->data);
node->data = NULL;
}
}
Expand Down

0 comments on commit 67a6ff4

Please sign in to comment.