Skip to content

Comments

CLEANUP: tidy TCPMemcachedNodeImpl#880

Merged
jhpark816 merged 1 commit intonaver:developfrom
oliviarla:optimize
Feb 20, 2025
Merged

CLEANUP: tidy TCPMemcachedNodeImpl#880
jhpark816 merged 1 commit intonaver:developfrom
oliviarla:optimize

Conversation

@oliviarla
Copy link
Collaborator

🔗 Related Issue

⌨️ What I did

  • TCPMemcachedNodeImpl 클래스를 정리했습니다.
    • transitionWriteItem 메서드를 제거합니다.
    • getBuffer 메서드를 한번만 호출하도록 합니다.

@oliviarla oliviarla requested a review from jhpark816 February 20, 2025 08:03
Copy link
Collaborator

@jhpark816 jhpark816 left a comment

Choose a reason for hiding this comment

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

리뷰 완료

transitionWriteItem();

Operation op = removeCurrentWriteOp();
getLogger().debug("Finished writing %s", op);
Copy link
Collaborator

Choose a reason for hiding this comment

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

아래와 같이 assert 문을 추가하여 o와 op 객체가 동일함을 표현해 주면 좋겠습니다.

          Operation op = removeCurrentWriteOp();
          assert o == op;          
          getLogger().debug("Finished writing %s", op);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

반영했습니다.

@jhpark816 jhpark816 merged commit a3bd40e into naver:develop Feb 20, 2025
2 checks passed
@oliviarla oliviarla deleted the optimize branch April 29, 2025 08:37
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.

2 participants