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:
Roman Gershman 2023-03-03 14:40:29 +02:00 committed by GitHub
parent c9e9311c8e
commit 8cf8115116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 21 additions and 11 deletions

View file

@ -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() {