Log the number of accounts each 250k txes (#1178)

This commit is contained in:
sakridge 2018-09-10 17:40:00 -07:00 committed by GitHub
parent 1c17c6dd2b
commit 9d80eefb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -494,6 +494,10 @@ impl Bank {
);
}
}
let cur_tx_count = self.transaction_count.load(Ordering::Relaxed);
if ((cur_tx_count + tx_count) & !(262144 - 1)) > cur_tx_count & !(262144 - 1) {
info!("accounts.len: {}", accounts.len());
}
self.transaction_count
.fetch_add(tx_count, Ordering::Relaxed);
res