From: Eric Bollengier Date: Thu, 24 Aug 2023 15:01:29 +0000 (+0200) Subject: Fix warning with delta_seq on MySQL during restore X-Git-Tag: Beta-15.0.0~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93a42b59f2bf2b9abd90b70c608217b529dc0295;p=thirdparty%2Fbacula.git Fix warning with delta_seq on MySQL during restore --- diff --git a/bacula/src/dird/ua_tree.c b/bacula/src/dird/ua_tree.c index 5b2e224af..023c09f14 100644 --- a/bacula/src/dird/ua_tree.c +++ b/bacula/src/dird/ua_tree.c @@ -233,6 +233,9 @@ int insert_tree_handler(void *ctx, int num_fields, char **row) if (node->delta_seq == -1) { /* just created */ tree_remove_node(tree->root, node); + } else if (delta_seq == node->delta_seq && JobId == node->JobId && FileIndex == node->FileIndex) { + /* Got duplicated record, just skip it */ + } else { tree->ua->warning_msg(_("Something is wrong with the Delta sequence of %s, " "skipping new parts. Current sequence is %d\n"),