mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
191162f100
commit
423eb9b641
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user