Set my_id synchronously.

GitOrigin-RevId: 09c597b0c8cb4fc6bcb56582837c5b85700b6973
This commit is contained in:
levlam 2020-09-25 13:15:23 +03:00
parent 95feb7baa5
commit cfa202a589

View File

@ -4166,6 +4166,8 @@ Status Td::init(DbKey key) {
init_managers();
G()->set_my_id(static_cast<int32>(G()->shared_config().get_option_integer("my_id")));
storage_manager_ = create_actor<StorageManager>("StorageManager", create_reference(),
min(current_scheduler_id + 2, scheduler_count - 1));
G()->set_storage_manager(storage_manager_.get());