mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-10 18:05:44 +02:00
chore(server): pass coordinator thread to a transaction object (#905)
This should help with some of the optimizations we may do in the future. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
c9e9311c8e
commit
8cf8115116
8 changed files with 21 additions and 11 deletions
|
@ -59,8 +59,9 @@ ServerState::ServerState() : interpreter_mgr_{absl::GetFlag(FLAGS_interpreter_pe
|
|||
ServerState::~ServerState() {
|
||||
}
|
||||
|
||||
void ServerState::Init() {
|
||||
void ServerState::Init(uint32_t thread_index) {
|
||||
gstate_ = GlobalState::ACTIVE;
|
||||
thread_index_ = thread_index;
|
||||
}
|
||||
|
||||
void ServerState::Shutdown() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue