diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-09-27 19:11:47 -0400 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-09-27 19:11:47 -0400 |
commit | 368094c3003a4d0d0837fd934f6b7d0ed04007ea (patch) | |
tree | d566c65416df495a29f3d29aa45a291eb753c6e4 | |
parent | 084d7873269fad79794302a18199306755401899 (diff) | |
download | deduper-368094c3003a4d0d0837fd934f6b7d0ed04007ea.tar.xz |
Force path compression after merging.
-rw-r--r-- | xsig/src/signature_db.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |