Skip to content

Commit

Permalink
"Fixed issue with data carryover between instances" (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saipranav-Kotamreddy authored Apr 2, 2024
1 parent 69ef583 commit 69069c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion platform/statistic/stats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,19 @@ void Stats::SendSummary(){

consensus_history_[std::to_string(transaction_summary_.txn_number)]=summary_json_;

LOG(ERROR)<<summary_json_.dump();

LOG(ERROR)<<summary_json_.dump();

//Reset Transaction Summary Parameters
transaction_summary_.request_pre_prepare_state_time=std::chrono::system_clock::time_point::min();
transaction_summary_.prepare_state_time=std::chrono::system_clock::time_point::min();
transaction_summary_.commit_state_time=std::chrono::system_clock::time_point::min();
transaction_summary_.execution_time=std::chrono::system_clock::time_point::min();
transaction_summary_.prepare_message_count_times_list.clear();
transaction_summary_.commit_message_count_times_list.clear();

summary_json_.clear();

}

void Stats::MonitorGlobal() {
Expand Down
2 changes: 1 addition & 1 deletion service/tools/config/server/server.config
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
write_batch_size:1,
},
require_txn_validation:true,
enable_viewchange:true,
enable_viewchange:false,
enable_resview:true,
enable_faulty_switch:false
}
Expand Down

0 comments on commit 69069c8

Please sign in to comment.