From df8e1f15f85efddc4ff21ce180b1dfe9890336dc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Feb 2009 02:40:17 +0000 Subject: [PATCH] Cap numBackups at 24 --- chrome/content/zotero/xpcom/db.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 572a4b228..330923030 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -725,6 +725,9 @@ Zotero.DBConnection.prototype.backupDatabase = function (suffix) { Zotero.debug("Backups disabled"); return false; } + if (numBackups > 24) { + numBackups = 24; + } } if (this.transactionInProgress()) {