Skip to content

Commit

Permalink
fix(tianmu): revert PR #1841. (#1850)
Browse files Browse the repository at this point in the history
Due to the disk space flattion, this PR is used to revert PR #1841. But this will lead to data in-consistent after the
instance killed at randomly because the new data inserted into memory, and will lost. The root cause pls ref to discussion
in #1621.
  • Loading branch information
RingsC authored Jun 3, 2023
1 parent 1f43e44 commit 12fa952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/tianmu/vc/tianmu_attr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ void TianmuAttr::LoadData(loader::ValueCache *nvs, Transaction *conn_info) {
}

DPN &dpn = get_dpn(pi);
if (current_txn_->LoadSource() == common::LoadSource::LS_Direct ||
if (/*current_txn_->LoadSource() == common::LoadSource::LS_Direct ||*/
current_txn_->LoadSource() == common::LoadSource::LS_File || dpn.numOfRecords == (1U << pss)) {
Pack *pack = get_pack(pi);
if (!dpn.Trivial()) {
Expand Down

0 comments on commit 12fa952

Please sign in to comment.