diff --git a/lib/backend/dbiset.c b/lib/backend/dbiset.c index 69c5d68b4..d8134148c 100644 --- a/lib/backend/dbiset.c +++ b/lib/backend/dbiset.c @@ -12,9 +12,9 @@ using std::vector; bool dbiIndexItem_s::operator < (const dbiIndexItem_s & other) const { - if (hdrNum < other.hdrNum) - return true; - return tagNum < other.tagNum; + if (hdrNum == other.hdrNum) + return tagNum < other.tagNum; + return hdrNum < other.hdrNum; } bool dbiIndexItem_s::operator == (const dbiIndexItem_s & other) const