From 848dd0745c33f19ead9b4767d2899c40fa58febc Mon Sep 17 00:00:00 2001 From: kanoi Date: Tue, 28 Oct 2014 22:53:12 +1100 Subject: [PATCH] ckdb - speed up sharesummary processing --- src/ckdb.h | 2 +- src/ckdb_dbio.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ckdb.h b/src/ckdb.h index bc68be96..741dc6f7 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -52,7 +52,7 @@ #define DB_VLOCK "1" #define DB_VERSION "0.9.2" -#define CKDB_VERSION DB_VERSION"-0.516" +#define CKDB_VERSION DB_VERSION"-0.566" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_dbio.c b/src/ckdb_dbio.c index 97e71b7d..9beccf47 100644 --- a/src/ckdb_dbio.c +++ b/src/ckdb_dbio.c @@ -2743,7 +2743,8 @@ bool _sharesummary_update(PGconn *conn, SHARES *s_row, SHAREERRORS *e_row, K_ITE } // During startup, don't save 'new' sharesummaries, to reduce DB I/O - if (!startup_complete && row->complete[0] == SUMMARY_NEW) + // ... and also during normal processing + if (row->complete[0] == SUMMARY_NEW) goto startupskip; if (conn == NULL && !confirm_sharesummary) {