MySQL 8.0.39
Source Code Documentation
fts_sync_t Struct Reference

The SYNC state of the cache. More...

#include <fts0types.h>

Public Attributes

trx_ttrx
 The transaction used for SYNCing the cache to disk. More...
 
dict_table_ttable
 Table with FTS index(es) More...
 
ulint max_cache_size
 Max size in bytes of the cache. More...
 
bool cache_full
 flag, when true it indicates that we need to sync the cache to disk More...
 
ulint lower_index
 the start index of the doc id vector from where to start adding documents to the FTS cache More...
 
ulint upper_index
 max index of the doc id vector to add to the FTS cache More...
 
bool interrupted
 true if SYNC was interrupted More...
 
doc_id_t min_doc_id
 The smallest doc id added to the cache. More...
 
doc_id_t max_doc_id
 The doc id at which the cache was noted as being full, we use this to set the upper_limit field. More...
 
std::chrono::steady_clock::time_point start_time
 SYNC start time. More...
 
bool in_progress
 flag whether sync is in progress. More...
 
bool unlock_cache
 flag whether unlock cache when write fts node More...
 
os_event_t event
 sync finish event More...
 

Detailed Description

The SYNC state of the cache.

There is one instance of this struct associated with each ADD thread.

Member Data Documentation

◆ cache_full

bool fts_sync_t::cache_full

flag, when true it indicates that we need to sync the cache to disk

◆ event

os_event_t fts_sync_t::event

sync finish event

◆ in_progress

bool fts_sync_t::in_progress

flag whether sync is in progress.

◆ interrupted

bool fts_sync_t::interrupted

true if SYNC was interrupted

◆ lower_index

ulint fts_sync_t::lower_index

the start index of the doc id vector from where to start adding documents to the FTS cache

◆ max_cache_size

ulint fts_sync_t::max_cache_size

Max size in bytes of the cache.

◆ max_doc_id

doc_id_t fts_sync_t::max_doc_id

The doc id at which the cache was noted as being full, we use this to set the upper_limit field.

◆ min_doc_id

doc_id_t fts_sync_t::min_doc_id

The smallest doc id added to the cache.

It should equal to doc_ids[lower_index]

◆ start_time

std::chrono::steady_clock::time_point fts_sync_t::start_time

SYNC start time.

◆ table

dict_table_t* fts_sync_t::table

Table with FTS index(es)

◆ trx

trx_t* fts_sync_t::trx

The transaction used for SYNCing the cache to disk.

◆ unlock_cache

bool fts_sync_t::unlock_cache

flag whether unlock cache when write fts node

◆ upper_index

ulint fts_sync_t::upper_index

max index of the doc id vector to add to the FTS cache


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