Fix database init.
This commit is contained in:
parent
2171452e77
commit
caf84b01b7
@ -3812,6 +3812,7 @@ void Td::finish_init() {
|
||||
return;
|
||||
}
|
||||
|
||||
VLOG(td_init) << "Continue to execute " << pending_init_requests_.size() << " pending requests";
|
||||
auto requests = std::move(pending_init_requests_);
|
||||
for (auto &request : requests) {
|
||||
run_request(request.first, std::move(request.second));
|
||||
|
@ -394,6 +394,7 @@ void TdDb::open(int32 scheduler_id, TdParameters parameters, DbKey key, Promise<
|
||||
public:
|
||||
void open(TdParameters &¶meters, DbKey &&key, Promise<OpenedDatabase> &&promise) {
|
||||
TdDb::open(-1, std::move(parameters), std::move(key), std::move(promise));
|
||||
stop();
|
||||
}
|
||||
};
|
||||
send_closure(create_actor_on_scheduler<Worker>("worker", scheduler_id), &Worker::open, std::move(parameters),
|
||||
|
Loading…
Reference in New Issue
Block a user