Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Oct 23, 2024
1 parent f313f65 commit bc5324a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crypto/vm/db/DynamicBagOfCellsDb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class DynamicBagOfCellsDbImpl : public DynamicBagOfCellsDb, private ExtCellCreat
ext_cell_creator = std::move(ext_cell_creator), promise = std::move(promise_ptr)]() mutable {
TRY_RESULT_PROMISE((*promise), res, loader.load(hash.as_slice(), true, ext_cell_creator));
if (res.status != CellLoader::LoadResult::Ok) {
promise->set_error(td::Status::Error("cell not found"));
promise->set_error(td::Status::Error("cell not found-1"));
return;
}
Ref<Cell> cell = res.cell();
Expand Down Expand Up @@ -294,7 +294,7 @@ class DynamicBagOfCellsDbImpl : public DynamicBagOfCellsDb, private ExtCellCreat
}
TRY_RESULT(load_result, cell_loader_->load(hash, true, *this));
if (load_result.status != CellLoader::LoadResult::Ok) {
return td::Status::Error("cell not found");
return td::Status::Error("cell not found-2");
}
return std::move(load_result.cell());
}
Expand Down
2 changes: 0 additions & 2 deletions validator/db/celldb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,6 @@ void CellDb::load_cell(RootHash hash, td::Promise<td::Ref<vm::DataCell>> promise
ranCount++;
if (ranCount % 1000 == 0) {
LOG(ERROR) << "CellDb mailbox: " << this->get_name() << " " << this->get_actor_info_ptr()->mailbox().reader().calc_size() << ", ranNum: " << ranNum;
// LOG(ERROR) << "yus " << this->get_name() << " " << this->get_actor_info_ptr()->mailbox().reader().calc_size();
ranCount = 0;
}
if (!started_) {
Expand Down Expand Up @@ -486,7 +485,6 @@ void CellDb::start_up() {
boc_->set_celldb_compress_depth(opts_->get_celldb_compress_depth());
cell_db_ = td::actor::create_actor<CellDbIn>("celldbin", root_db_, actor_id(this), path_, opts_, rocks_db_);

// cell_db_ = td::actor::create_actor<CellDbIn>("celldbin", root_db_, actor_id(this), path_, opts_, rocks_db_);
for (int i = 0; i < THREAD_COUNTS; i++) {
cell_db_read_[i] = td::actor::create_actor<CellDbIn>("celldbin", root_db_, actor_id(this), path_, opts_, rocks_db_);
}
Expand Down
1 change: 0 additions & 1 deletion validator/db/rootdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,6 @@ void RootDb::start_up() {
for (int i = 0; i < THREAD_COUNTS; i++){
cell_db_read_[i] = td::actor::create_actor<CellDb>("celldb", actor_id(this), path, opts_, rock_db);
}
// cell_db_ = td::actor::create_actor<CellDb>("celldb", actor_id(this), root_path_ + "/celldb/", opts_);
state_db_ = td::actor::create_actor<StateDb>("statedb", actor_id(this), root_path_ + "/state/");
static_files_db_ = td::actor::create_actor<StaticFilesDb>("staticfilesdb", actor_id(this), root_path_ + "/static/");
archive_db_ = td::actor::create_actor<ArchiveManager>("archive", actor_id(this), root_path_, opts_);
Expand Down

0 comments on commit bc5324a

Please sign in to comment.