mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore(transaction): Clean up scheduling code (#2422)
* chore(transction): Clean scheduling code
This commit is contained in:
parent
9f3b118b87
commit
bf89c7eac2
5 changed files with 75 additions and 80 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue