mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Added a check to debug the total of archived items
This commit is contained in:
parent
ecbf7f6caa
commit
0e9d83ee14
1 changed files with 6 additions and 1 deletions
|
@ -279,6 +279,7 @@ void con_set<key, value>::Archive(Archiver& arc)
|
|||
Entry *e;
|
||||
int hash;
|
||||
int i;
|
||||
int total;
|
||||
|
||||
arc.ArchiveUnsigned(&tableLength);
|
||||
arc.ArchiveUnsigned(&threshold);
|
||||
|
@ -301,11 +302,15 @@ void con_set<key, value>::Archive(Archiver& arc)
|
|||
table[hash] = e;
|
||||
}
|
||||
} else {
|
||||
for (i = tableLength - 1; i >= 0; i--) {
|
||||
total = 0;
|
||||
|
||||
for (i = 0; i < tableLength; i++) {
|
||||
for (e = table[i]; e != NULL; e = e->next) {
|
||||
e->Archive(arc);
|
||||
total++;
|
||||
}
|
||||
}
|
||||
assert(total == count);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue