Skip to content

Commit

Permalink
remove string allocation in metadata compare
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Artoul committed Aug 8, 2019
1 parent a99f7d4 commit 5ba7ab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbnode/storage/repair/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func (m replicaMetadataComparer) Compare() MetadataComparisonResult {

for _, hm := range bm {
if !originContainsBlock {
if hm.Host.String() == m.origin.String() {
if hm.Host.ID() == m.origin.ID() {
originContainsBlock = true
}
}
Expand Down

0 comments on commit 5ba7ab1

Please sign in to comment.