]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix spurious MD5 update errors when nothing changed should fix bug #2237 and others
authorEric Bollengier <eric@baculasystems.com>
Mon, 29 Aug 2016 16:25:18 +0000 (18:25 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Sep 2016 11:41:18 +0000 (13:41 +0200)
bacula/src/cats/sql_update.c

index 6cb9114e4d8ffbb9ed2d5256814b56643b055206..b6c4677c56ca464ce13c63d7dc691e814ba144c7 100644 (file)
@@ -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;
 }