![]()  | 
  
    MySQL 8.4.7
    
   Source Code Documentation 
   | 
 
This class is used to limit the bytes collected in Result_set. More...
#include <protocol_local_v2.h>
Public Member Functions | |
| void | add_bytes (uint64_t amend) | 
| bool | has_capacity () | 
| void | reset () | 
| void | set_capacity (uint64_t cap) | 
| uint64_t | get_capacity () | 
Private Attributes | |
| uint64_t | m_configured_capacity {MAX_CAPACITY} | 
| uint64_t | m_current_capacity {0} | 
Static Private Attributes | |
| static constexpr auto | MAX_CAPACITY {500} | 
This class is used to limit the bytes collected in Result_set.
this is required to avoid exhausting MEM_ROOT, when fetch large set of rows.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  staticconstexprprivate |