From 368094c3003a4d0d0837fd934f6b7d0ed04007ea Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 27 Sep 2022 19:11:47 -0400 Subject: Force path compression after merging. --- xsig/src/signature_db.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xsig/src/signature_db.cpp b/xsig/src/signature_db.cpp index 907e815..d03e12a 100644 --- a/xsig/src/signature_db.cpp +++ b/xsig/src/signature_db.cpp @@ -581,7 +581,11 @@ void signature_db::group_similar() batch_ds_set_parent_begin(); auto pairs = this->dupe_pairs(); for (auto &p : pairs) + { ds_merge(p.id1, p.id2); + ds_find(p.id1); + ds_find(p.id2); + } batch_ds_get_parent_end(); batch_ds_set_parent_end(); } -- cgit v1.2.3