Add debug for get_binlog_pmc.
This commit is contained in:
parent
72b258e78e
commit
b788518f22
|
@ -163,8 +163,8 @@ std::shared_ptr<KeyValueSyncInterface> TdDb::get_config_pmc_shared() {
|
||||||
return config_pmc_;
|
return config_pmc_;
|
||||||
}
|
}
|
||||||
|
|
||||||
KeyValueSyncInterface *TdDb::get_binlog_pmc() {
|
KeyValueSyncInterface *TdDb::get_binlog_pmc_impl(const char *file, int line) {
|
||||||
CHECK(binlog_pmc_);
|
LOG_CHECK(binlog_pmc_) << G()->close_flag() << ' ' << file << ' ' << line;
|
||||||
return binlog_pmc_.get();
|
return binlog_pmc_.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,9 @@ class TdDb {
|
||||||
|
|
||||||
std::shared_ptr<KeyValueSyncInterface> get_binlog_pmc_shared();
|
std::shared_ptr<KeyValueSyncInterface> get_binlog_pmc_shared();
|
||||||
std::shared_ptr<KeyValueSyncInterface> get_config_pmc_shared();
|
std::shared_ptr<KeyValueSyncInterface> get_config_pmc_shared();
|
||||||
KeyValueSyncInterface *get_binlog_pmc();
|
|
||||||
|
#define get_binlog_pmc() get_binlog_pmc_impl(__FILE__, __LINE__)
|
||||||
|
KeyValueSyncInterface *get_binlog_pmc_impl(const char *file, int line);
|
||||||
KeyValueSyncInterface *get_config_pmc();
|
KeyValueSyncInterface *get_config_pmc();
|
||||||
|
|
||||||
SqliteKeyValue *get_sqlite_sync_pmc();
|
SqliteKeyValue *get_sqlite_sync_pmc();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user