Commit 09ec093a authored by Geoff Simmons's avatar Geoff Simmons

trackrdrd: minor cleanup

parent 6904dca3
...@@ -475,7 +475,7 @@ submit(hashentry *he) ...@@ -475,7 +475,7 @@ submit(hashentry *he)
hash_free(he); hash_free(he);
} }
/* like Submit, but for recrods in HASH_OPEN */ /* like Submit, but for records in HASH_OPEN */
static void static void
hash_evacuate(hashentry *he) hash_evacuate(hashentry *he)
{ {
...@@ -577,21 +577,15 @@ static hashentry ...@@ -577,21 +577,15 @@ static hashentry
return (he); return (he);
} }
static void
hash_dump1(hashentry *entry, int i)
{
if (entry->state == HASH_EMPTY)
return;
LOG_Log(LOG_INFO, "Hash entry %d: XID=%d",
i, entry->xid);
DATA_Dump1(entry->de, 0);
}
static void static void
hash_dump(void) hash_dump(void)
{ {
for (int i = 0; i < htbl.len; i++) for (int i = 0; i < htbl.len; i++) {
hash_dump1(&htbl.entry[i], i); if (htbl.entry[i].state == HASH_EMPTY)
continue;
LOG_Log(LOG_INFO, "Hash entry %d: XID=%d", i, htbl.entry[i].xid);
DATA_Dump1(htbl.entry[i].de, 0);
}
} }
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment