Commit c0f1aaf6 authored by claes's avatar claes

Qid collision att qid = 100

parent 55b1aa86
......@@ -1088,6 +1088,8 @@ qdb_AddQue (
qp = hash_Search(sts, &qdb->qix_ht, &qix);
if (qp != NULL) pwr_Return(NULL, sts, QCOM__QALLREXIST);
} else {
if ( qdb->g->qid.qix == qdb_cQix_ReservedMin)
qdb->g->qid.qix = qdb_cQix_ReservedMax + 1;
qix = qdb->g->qid.qix++;
}
......
......@@ -129,6 +129,8 @@ static const qcom_sQid qdb_cQmonitor = {qdb_cImonitor, 0};
#define qdb_cMin_pool_isize 600000
#define qdb_cMaxSegSize 1456
#define qdb_cQix_ReservedMin 100
#define qdb_cQix_ReservedMax 199
/* General database lock to keep consistency.
......
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