aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-03 00:14:09 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-03 00:14:22 -0800
commit02f16e90b6ad150a26c95d2efd7418b7cf83ec5c (patch)
treef57883fa734386a5d84dde538d0445f33156b1e9 /history.h
parent984a4980635c637057ada3efc9a213c0a1d037a9 (diff)
Turn on incremental history saving (cross your fingers)
Diffstat (limited to 'history.h')
-rw-r--r--history.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/history.h b/history.h
index 3a123cae..4eec1516 100644
--- a/history.h
+++ b/history.h
@@ -136,9 +136,10 @@ private:
/** Timestamp of when this history was created */
const time_t birth_timestamp;
- /** Timestamp of last save */
- time_t save_timestamp;
+ /** How many items we add until the next vacuum. Initially a random value. */
+ int countdown_to_vacuum;
+ /** Figure out the offsets of our mmap data */
void populate_from_mmap(void);
/** List of old items, as offsets into out mmap data */