From 9107e46273a7c1c8d2566ffa0f7ecbef110a2f60 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 29 Aug 2016 18:25:18 +0200 Subject: [PATCH] Fix spurious MD5 update errors when nothing changed should fix bug #2237 and others --- bacula/src/cats/sql_update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/cats/sql_update.c b/bacula/src/cats/sql_update.c index 6cb9114e4d..b6c4677c56 100644 --- a/bacula/src/cats/sql_update.c +++ b/bacula/src/cats/sql_update.c @@ -58,7 +58,7 @@ int BDB::bdb_add_digest_to_file_record(JCR *jcr, FileId_t FileId, char *digest, bdb_escape_string(jcr, esc_name, digest, len); Mmsg(cmd, "UPDATE File SET MD5='%s' WHERE FileId=%s", esc_name, edit_int64(FileId, ed1)); - ret = UpdateDB(jcr, cmd, false); + ret = UpdateDB(jcr, cmd, true); bdb_unlock(); return ret; } -- 2.39.5