X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Flog.c;h=9dfaa5bfd61437505ca52ed7b339296a8804a6f0;hb=ddaec40a37a5e65e53546b14632b1b0b35613264;hp=cec46cb9a9aa90cc3a48f72cc8526ba4187f6817;hpb=f2586554fd55cd3cc1be65ac33d1122d00372133;p=bluesky.git diff --git a/bluesky/log.c b/bluesky/log.c index cec46cb..9dfaa5b 100644 --- a/bluesky/log.c +++ b/bluesky/log.c @@ -36,7 +36,7 @@ // 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 << 23) +#define LOG_SEGMENT_SIZE (1 << 24) #define HEADER_MAGIC 0x676f4c0a #define FOOTER_MAGIC 0x2e435243 @@ -295,6 +295,8 @@ BlueSkyRCStr *bluesky_log_map_object(BlueSkyLog *log, g_hash_table_insert(log->mmap_cache, GINT_TO_POINTER(log_seq), map); + g_print("Mapped log segment %d...\n", log_seq); + close(fd); }