summaryrefslogtreecommitdiffstats
path: root/src/database/engine/rrdengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/engine/rrdengine.h')
-rw-r--r--src/database/engine/rrdengine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/database/engine/rrdengine.h b/src/database/engine/rrdengine.h
index 37ea92b8a..0a22477ac 100644
--- a/src/database/engine/rrdengine.h
+++ b/src/database/engine/rrdengine.h
@@ -28,7 +28,10 @@ struct rrdengine_instance;
struct rrdeng_cmd;
#define MAX_PAGES_PER_EXTENT (109) /* TODO: can go higher only when journal supports bigger than 4KiB transactions */
-#define DEFAULT_PAGES_PER_EXTENT (64)
+#define DEFAULT_PAGES_PER_EXTENT (109)
+
+#define MAX_EXTENT_UNCOMPRESSED_SIZE (MAX_PAGES_PER_EXTENT * (RRDENG_BLOCK_SIZE + RRDENG_GORILLA_32BIT_BUFFER_SIZE))
+
#define RRDENG_FILE_NUMBER_SCAN_TMPL "%1u-%10u"
#define RRDENG_FILE_NUMBER_PRINT_TMPL "%1.1u-%10.10u"