Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLEANUP: Refactor methods of setting ritems #747

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

ing-eoking
Copy link
Collaborator

@ing-eoking ing-eoking commented Mar 26, 2024

🔗 Related Issue

  • jam2in/arcus-works#493

⌨️ What I did

  • 추가 데이터를 담는 공간인 rlist를 추가했습니다.
  • ritem_set_first / ritem_set_next, RTYPE 를 제거했습니다.
  • 관련 함수 add_ritem / add_ritem_mblck / add_ritem_einfo / add_ritem_hinfo를 추가했습니다.
  • conn_nread를 변경된 방식에 맞게 수정했습니다.
  • rlist의 메모리 부족 처리를 추가하면서 일부 에러 핸들링을 아래의 PR처럼 통일시켰습니다.

@ing-eoking ing-eoking marked this pull request as draft March 26, 2024 02:17
@ing-eoking ing-eoking marked this pull request as ready for review March 26, 2024 08:15
@jhpark816

This comment was marked as resolved.

memcached.c Outdated Show resolved Hide resolved
memcached.c Outdated Show resolved Hide resolved
jhpark816

This comment was marked as resolved.

@ing-eoking ing-eoking marked this pull request as draft March 28, 2024 07:39
@ing-eoking ing-eoking self-assigned this Mar 29, 2024
@ing-eoking ing-eoking marked this pull request as ready for review March 29, 2024 02:55
@ing-eoking

This comment was marked as resolved.

@ing-eoking

This comment was marked as resolved.

@namsic
Copy link
Collaborator

namsic commented Mar 29, 2024

add_ritem_e/hinfo 또한 로직은 add_iov_e/hinfo_ascii/bin와 유사하다고 생각됩니다.
add_ritem_e/hinfo_ascii/bin으로 분리할까요?
add_ritem_mblck는 둘다(ASCII, Binary) 같은 방식을 사용하므로 분리 X

지금 구현 기준으로는 protocol 간 코드 차이가 거의 없어서 분리하지 않아도 될 것 같습니다.

@ing-eoking ing-eoking force-pushed the ritem branch 3 times, most recently from 3d70157 to 94ad2a4 Compare April 4, 2024 03:43
jhpark816

This comment was marked as resolved.

jhpark816

This comment was marked as resolved.

@ing-eoking ing-eoking force-pushed the ritem branch 9 times, most recently from fc548b5 to cb5ce60 Compare April 5, 2024 03:30
@ing-eoking

This comment was marked as resolved.

memcached.c Outdated Show resolved Hide resolved
@ing-eoking ing-eoking force-pushed the ritem branch 2 times, most recently from 77ba1ea to a4f8c9d Compare April 5, 2024 08:57
@ing-eoking
Copy link
Collaborator Author

2차 수정되었습니다.

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.

리뷰 완료

memcached.c Show resolved Hide resolved
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.

None yet

3 participants