chore(transaction): Clean up scheduling code (#2422)

* chore(transction): Clean scheduling code
This commit is contained in:
Vladislav 2024-01-17 17:33:48 +03:00 committed by GitHub
parent 9f3b118b87
commit bf89c7eac2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 75 additions and 80 deletions

View file

@ -308,6 +308,10 @@ class DbSlice {
return db_arr_[id].get();
}
const DbTable* GetDBTable(DbIndex id) const {
return db_arr_[id].get();
}
std::pair<PrimeTable*, ExpireTable*> GetTables(DbIndex id) {
return std::pair<PrimeTable*, ExpireTable*>(&db_arr_[id]->prime, &db_arr_[id]->expire);
}