X-Git-Url: http://git.vrable.net/?p=bluesky.git;a=blobdiff_plain;f=bluesky%2Fbluesky-private.h;h=259536730aeaa6e287e133c6ecf18ee502609b6a;hp=5a55b797134d3cd4eab35b6ecb27b0dc778cd30b;hb=b52abd849493636b81dda8c752a60834f1a6b91f;hpb=1b57824ed22fb6a40a0f85e5cbc3b0a9538b08ec diff --git a/bluesky/bluesky-private.h b/bluesky/bluesky-private.h index 5a55b79..2595367 100644 --- a/bluesky/bluesky-private.h +++ b/bluesky/bluesky-private.h @@ -268,6 +268,10 @@ struct cloudlog_header { uint32_t size1, size2, size3; } __attribute__((packed)); +// Rough size limit for a log segment. This is not a firm limit and there are +// no absolute guarantees on the size of a log segment. +#define LOG_SEGMENT_SIZE (1 << 22) + #define JOURNAL_MAGIC "\nLog" #define CLOUDLOG_MAGIC "AgI-" #define CLOUDLOG_MAGIC_ENCRYPTED "AgI=" // CLOUDLOG_MAGIC[3] ^= 0x10