From 1408d4a286bd10ccc96c8a2bd860c4b738b1f0f8 Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Fri, 8 Jun 2001 20:48:08 +0000 Subject: [PATCH] more bug fix git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@4542 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/sql/PostgresBackend.c | 11 ++++++++++- src/engine/sql/README | 3 --- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/engine/sql/PostgresBackend.c b/src/engine/sql/PostgresBackend.c index 082197694f..1fe4a1b973 100644 --- a/src/engine/sql/PostgresBackend.c +++ b/src/engine/sql/PostgresBackend.c @@ -1463,6 +1463,10 @@ pgendRunQuery (Backend *bend, Query *q) sql_Query_destroy(sq); + /* the fill-out will dirty a lot of data. That's irrelevent, + * mark it all as having been saved. */ + xaccGroupMarkSaved (be->topgroup); + pgendEnable(be); gnc_engine_resume_events(); @@ -1785,6 +1789,10 @@ pgendPriceLookup (Backend *bend, GNCPriceLookup *look) SEND_QUERY (be, be->buff, ); pgendGetResults (be, get_price_cb, look->prdb); + /* insertion into the price db will mark it dirty; + * but it really isn't at this point. */ + gnc_pricedb_mark_clean (look->prdb); + /* re-enable events */ pgendEnable(be); gnc_engine_resume_events(); @@ -3093,7 +3101,8 @@ pgend_session_begin (GNCBook *sess, const char * sessionid, be->be.price_commit_edit = pgend_price_commit_edit; be->be.run_query = pgendRunQuery; be->be.price_lookup = pgendPriceLookup; - be->be.sync = pgendSync; + // be->be.sync = pgendSync; + be->be.sync = NULL; be->be.sync_price = pgendSyncPriceDB; PWARN ("MODE_POLL is alpha -- \n" "there are a few unfixed bugs, but maybe this mode is usable.\n" diff --git a/src/engine/sql/README b/src/engine/sql/README index 49d45f1618..dc1487040d 100644 --- a/src/engine/sql/README +++ b/src/engine/sql/README @@ -248,9 +248,6 @@ This list only affects the multi-user and advanced/optional features. Most of the items on this list are 'critical' in the sense that multi-user mode is fundamentally broken unless they are fixed. --- multi-user mode says 'not saved, save?' we keep clearing this flag, - when is it getting set ??? - -- modify checkpoint computation to always occur on fixed dates. Failure to do so causes the fill-out algorithm to pull in all data. Document this inn design.txt