Flipped the check for existing metadata

This commit is contained in:
Kenneth Skovhede
2017-05-30 10:29:18 +02:00
parent d18431b385
commit 4d77fd7ebc
@@ -400,7 +400,7 @@ namespace Duplicati.Library.Main.Database
/// <returns>True if the set was added to the database, false otherwise</returns>
public bool AddMetadataset(string filehash, long size, long blocksetid, out long metadataid, System.Data.IDbTransaction transaction = null)
{
if (!GetMetadatasetID(filehash, size, out metadataid, transaction))
if (GetMetadatasetID(filehash, size, out metadataid, transaction))
return false;
using (var tr = new TemporaryTransactionWrapper(m_connection, transaction))