Skip to content

Conversation

@uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Jul 3, 2024

🔗 Related Issue

⌨️ What I did

  • getReadonlyCopy() 메소드에서 Lock을 잡는 시점이 올바르지 않은 점을 수정합니다.
  • 기존 구현에서 ketamaNodes와 ketamaGroups를 미리 복제해두었는데, 이렇게 하면 TreeMap 객체를 2회 순회하기 때문에 1회만 순회하도록 수정합니다.

@uhm0311 uhm0311 requested review from brido4125 and oliviarla July 3, 2024 07:31

lock.lock();
try {
TreeMap<Long, SortedSet<MemcachedNode>> smn = new TreeMap<>();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

smn을 포함하여 변수 전체적으로 좀 더 readable한 변수명으로 변경 가능한가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

변경했습니다.

@uhm0311 uhm0311 force-pushed the uhm0311/develop7 branch from a918bcc to 7a1f425 Compare July 3, 2024 08:33
@jhpark816 jhpark816 merged commit ddf7a33 into naver:develop Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants