MySQL 9.0.0
Source Code Documentation
Lob_diff Struct Reference

The modification done to the LOB. More...

#include <row0upd.h>

Public Member Functions

 Lob_diff (mem_heap_t *mem_heap)
 Constructor. More...
 
const byteread_offset (const byte *undo_ptr)
 Read the offset from the undo record. More...
 
const byteread_length (const byte *undo_ptr)
 Read the length from the undo record. More...
 
void set_old_data (const byte *undo_ptr)
 
std::ostream & print (std::ostream &out) const
 

Public Attributes

ulint m_offset = 0
 The offset within LOB where partial update happened. More...
 
ulint m_length = 0
 The length of the modification. More...
 
const bytem_old_data = nullptr
 Changes to the LOB data. More...
 
Lob_index_diff_vecm_idx_diffs
 Changes to the LOB index. More...
 
mem_heap_theap
 Memory heap in which this object is allocated. More...
 

Detailed Description

The modification done to the LOB.

Constructor & Destructor Documentation

◆ Lob_diff()

Lob_diff::Lob_diff ( mem_heap_t mem_heap)
inline

Constructor.

Parameters
[in]mem_heapthe memory heap in which this object has been created.

Member Function Documentation

◆ print()

std::ostream & Lob_diff::print ( std::ostream &  out) const
inline

◆ read_length()

const byte * Lob_diff::read_length ( const byte undo_ptr)
inline

Read the length from the undo record.

Parameters
[in]undo_ptrpointer into the undo log record.
Returns
pointer into the undo log record after length information.

◆ read_offset()

const byte * Lob_diff::read_offset ( const byte undo_ptr)
inline

Read the offset from the undo record.

Parameters
[in]undo_ptrpointer into the undo log record.
Returns
pointer into the undo log record after offset.

◆ set_old_data()

void Lob_diff::set_old_data ( const byte undo_ptr)
inline

Member Data Documentation

◆ heap

mem_heap_t* Lob_diff::heap

Memory heap in which this object is allocated.

◆ m_idx_diffs

Lob_index_diff_vec* Lob_diff::m_idx_diffs

Changes to the LOB index.

◆ m_length

ulint Lob_diff::m_length = 0

The length of the modification.

◆ m_offset

ulint Lob_diff::m_offset = 0

The offset within LOB where partial update happened.

◆ m_old_data

const byte* Lob_diff::m_old_data = nullptr

Changes to the LOB data.


The documentation for this struct was generated from the following file: