Inline TdDb::binlog_path/sqlite_path.

This commit is contained in:
levlam 2023-03-13 22:41:59 +03:00
parent 201ac65a73
commit 1ce19c89ed
2 changed files with 2 additions and 12 deletions

View File

@ -226,13 +226,6 @@ DialogDbAsyncInterface *TdDb::get_dialog_db_async() {
return dialog_db_async_.get();
}
CSlice TdDb::binlog_path() const {
return binlog_->get_path();
}
CSlice TdDb::sqlite_path() const {
return get_sqlite_path(parameters_);
}
void TdDb::flush_all() {
LOG(INFO) << "Flush all databases";
if (message_db_async_) {
@ -608,8 +601,8 @@ Status TdDb::destroy(const Parameters &parameters) {
}
void TdDb::with_db_path(const std::function<void(CSlice)> &callback) {
SqliteDb::with_db_path(sqlite_path(), callback);
callback(binlog_path());
SqliteDb::with_db_path(get_sqlite_path(parameters_), callback);
callback(binlog_->get_path());
}
Result<string> TdDb::get_stats() {

View File

@ -118,9 +118,6 @@ class TdDb {
SqliteKeyValue *get_sqlite_sync_pmc();
SqliteKeyValueAsyncInterface *get_sqlite_pmc();
CSlice binlog_path() const;
CSlice sqlite_path() const;
void flush_all();
void close_all(Promise<> on_finished);