Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 50 additions & 1 deletion ludicrousdb/includes/class-ludicrousdb.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,55 @@ class LudicrousDB extends wpdb {
*/
private $callback_result = null;

/**
* The current table being queried.
*
* @var string|null Default null.
*/
private $table = null;

/**
* The lag threshold for replica servers.
*
* @var float|null Default null.
*/
private $lag_threshold = null;

/**
* The current database handle name.
*
* @var string|null Default null.
*/
private $dbhname = null;

/**
* The current dataset being queried.
*
* @var string|null Default null.
*/
private $dataset = null;

/**
* The current host being connected to.
*
* @var string|null Default null.
*/
private $current_host = null;

/**
* The last database connection information.
*
* @var array|null Default null.
*/
private $last_connection = null;

/**
* The cache key for lag information.
*
* @var string|null Default null.
*/
private $lag_cache_key = null;

/**
* Array of renamed class variables.
*
Expand Down Expand Up @@ -1269,7 +1318,7 @@ protected function increment_db_connection( $connection = 0, $name = '' ) {
* @return bool|mysqli|resource
*/
protected function single_db_connect( $dbhname, $host, $user, $password ) {
$tcp_cache_key = $host;
$tcp_cache_key = $host;
Comment thread
JJJ marked this conversation as resolved.
$this->is_mysql = true;

// Check client flags
Expand Down