Log the number of accounts each 250k txes (#1178)
This commit is contained in:
parent
1c17c6dd2b
commit
9d80eefb81
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue