Apply clang-format to earlier mako changes

This commit is contained in:
Junhyun Shim 2022-03-23 14:15:24 +01:00
parent 00ce4f6248
commit 1c8edc92f9
2 changed files with 5 additions and 6 deletions

View File

@ -696,9 +696,9 @@ int runOneTask(Transaction tx, Arguments const& args, ThreadStatistics& stats, L
watch_commit.stop();
watch_tx.setStop(watch_commit.getStop());
auto tx_resetter = ExitGuard([&watch_tx, &tx]() {
tx.reset();
watch_tx.startFromStop();
});
tx.reset();
watch_tx.startFromStop();
});
if (rc == FutureRC::OK) {
if (do_sample) {
const auto commit_latency = watch_commit.diff();

View File

@ -56,13 +56,12 @@ int computeThreadPortion(int val, int p_idx, int t_idx, int total_p, int total_t
/* similar to insertBegin/end, computeThreadTps computes
* the per-thread target TPS for given configuration.
*/
#define computeThreadTps(val, p_idx, t_idx, total_p, total_t) \
computeThreadPortion(val, p_idx, t_idx, total_p, total_t)
#define computeThreadTps(val, p_idx, t_idx, total_p, total_t) computeThreadPortion(val, p_idx, t_idx, total_p, total_t)
/* similar to computeThreadTps,
* computeThreadIters computs the number of iterations.
*/
#define computeThreadIters(val, p_idx, t_idx, total_p, total_t) \
#define computeThreadIters(val, p_idx, t_idx, total_p, total_t) \
computeThreadPortion(val, p_idx, t_idx, total_p, total_t)
/* get the number of digits */