fix 'save' performance problem

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5014 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2001-07-25 23:34:15 +00:00
parent 191162f100
commit 423eb9b641

View File

@ -649,10 +649,12 @@ pgendSync (Backend *bend, AccountGroup *grp)
be->version_check = (guint32) time(0);
/* for the multi-user modes, we allow a save only once,
* when the database is created for the first time */
/* For the multi-user modes, we allow a save only once,
* when the database is created for the first time.
* Ditto for the single-user update mode: it should never
* wander out of sync.
*/
if ((MODE_SINGLE_FILE != be->session_mode) &&
(MODE_SINGLE_UPDATE != be->session_mode) &&
(FALSE == be->freshly_created_db))
{
LEAVE("no sync");