Comment 1 for bug 1185689

Revision history for this message
Raghavendra D Prabhu (raghavendra-prabhu) wrote :

Gcache exposes seqno_max and seqno_locked. The transaction mapping is done at higher levels I think.

However, I see

        std::ostringstream pstream;

        pstream
            << "* GCache data file *" << std::endl
            << "--------------------" << std::endl
            << "Version : " << header[HEADER_VERSION] << std::endl
            << "Size : " << header[FILE_SIZE] << "bytes" << std::endl
            << "Closed : " << (header[FILE_OPEN]?"no":"yes") << std::endl
            << "Data offset : " << header[DATA_OFFSET] << std::endl
            << "First buffer : " << header[FIRST_OFFSET] << std::endl
            << "Next buffer : " << header[NEXT_OFFSET] << std::endl
            << "Min. seqno : " << header[SEQNO_MIN] << std::endl
            << "Max. seqno : " << header[SEQNO_MAX] << std::endl
            << "Ordered buffers : " << (header[SEQNO_MAX] - header[SEQNO_MIN]) << std::endl
            << "--------------------" << std::endl;

        strncpy (preamble, pstream.str().c_str(), PREAMBLE_LEN - 1);
        preamble[PREAMBLE_LEN - 1] = '\0';

which is unused, probably can be used to dump to log.