cai-jinlin

Results 2 comments of cai-jinlin

Root cause of the anomaly: When a FOLLOWER node recovers from a backup file, the "home" information of external tables (such as databases like MySQL or SQL Server) is lost....

// 添加数据库引用恢复逻辑 Status ExternalTable::read_fields(DataInput* in) { // 先调用父类方法 Table::read_fields(in); // 读取数据库ID int64_t db_id; in->read_int64(&db_id); // 核心修复:根据ID找到Database并设置引用 if (db_id != -1) { _db = Catalog::instance()->get_db(db_id); if (_db == nullptr) { LOG(WARNING)