struct log_msg_ptr

Overview

Structure that is stored in the tree of log nodes instead of log_msg structure for each regular log message. More…

#include <rgt_common.h>

struct log_msg_ptr {
    // fields

    off_t offset;
    uint32_t timestamp[2];
};

Detailed Documentation

Structure that is stored in the tree of log nodes instead of log_msg structure for each regular log message. It is used to reduce memory consumption: full log message is loaded to memory from file only when we need to process it, and memory is released as soon as we end with it.

Fields

off_t offset

At which offset in raw log file we can find message referenced by this structure

uint32_t timestamp[2]

Timestamp of referenced log message