From: Eric Bollengier Date: Mon, 29 Aug 2016 16:25:18 +0000 (+0200) Subject: Fix spurious MD5 update errors when nothing changed should fix bug #2237 and others X-Git-Tag: Release-7.4.4~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9107e46273a7c1c8d2566ffa0f7ecbef110a2f60;p=bacula%2Fbacula Fix spurious MD5 update errors when nothing changed should fix bug #2237 and others --- 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; }