Skip to content

Commit 362d484

Browse files
authored
Update key_outline_verifier.go
1 parent 4c20adf commit 362d484

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/full_check/checker/key_outline_verifier.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ func (p *KeyOutlineVerifier) FetchKeys(keyInfo []*common.Key, sourceClient *clie
2626
}
2727
for i, t := range sourceKeyTypeStr {
2828
keyInfo[i].Tp = common.NewKeyType(t)
29+
/*
30+
* Bugfix: see https://github.com/alibaba/RedisFullCheck/issues/74.
31+
* It will skip the conflict key check because keyInfo[i].SourceAttr.ItemCount is zero here.
32+
* Unlike the FetchTypeAndLen method in full_value_verifier, which will assign a non -zero value of keylen to keyInfo[i].SourceAttr.ItemCount
33+
* Refer to the VerifyOneGroupKeyInfo method for details.
34+
*/
35+
keyInfo[i].SourceAttr.ItemCount = 1
2936
}
3037
wg.Done()
3138
}()
@@ -66,4 +73,4 @@ func (p *KeyOutlineVerifier) VerifyOneGroupKeyInfo(keyInfo []*common.Key, confli
6673
conflictKey <- keyInfo[i]
6774
}
6875
} // end of for i := 0; i < len(keyInfo); i++
69-
}
76+
}

0 commit comments

Comments
 (0)