mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
ubik: urecovery_AbortAll diagnostic msgs
As a troubleshooting aid for developers, add a few counters and a log msg so we know when transactions are being aborted (if any) by urecovery_AbortAll. Change-Id: I528df6d51acd5d10bb2de30f43b8d4415adc7f8a Reviewed-on: https://gerrit.openafs.org/12618 Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
This commit is contained in:
parent
8b0e312d04
commit
eac22d3e46
@ -133,9 +133,17 @@ int
|
||||
urecovery_AbortAll(struct ubik_dbase *adbase)
|
||||
{
|
||||
struct ubik_trans *tt;
|
||||
int reads = 0, writes = 0;
|
||||
|
||||
for (tt = adbase->activeTrans; tt; tt = tt->next) {
|
||||
if (tt->type == UBIK_WRITETRANS)
|
||||
writes++;
|
||||
else
|
||||
reads++;
|
||||
udisk_abort(tt);
|
||||
}
|
||||
ViceLog(0, ("urecovery_AbortAll: just aborted %d read and %d write transactions\n",
|
||||
reads, writes));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user