Content-Length: 395217 | pFad | http://github.com/naver/arcus-memcached/pull/812

2B INTERNAL: Modify the term related to eflag by ing-eoking · Pull Request #812 · naver/arcus-memcached · GitHub
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

INTERNAL: Modify the term related to eflag #812

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

ing-eoking
Copy link
Collaborator

🔗 Related Issue

⌨️ What I did

  • eflag 관련 용어를 변경합니다.
    • fwhere => offset (일부 구조체에서 offset 변수가 이미 존재하여 f_offset 이라는 이름을 사용했습니다.)
    • operand => bitwvalue
    • fvalue => compvalue(eflag_filter), value(eflag_update)

@jhpark816

This comment was marked as resolved.

@jhpark816

This comment was marked as resolved.

@ing-eoking

This comment was marked as resolved.

@jhpark816

This comment was marked as resolved.

@ing-eoking

This comment was marked as resolved.

@jhpark816

This comment was marked as resolved.

@ing-eoking
Copy link
Collaborator Author

@jhpark816

rebase 되었습니다.

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.

일부 리뷰

- \<foperand\>는 bitwise 연산을 취할 operand로 hexadecimal로 표현한다.
\<foperand\>의 길이는 compare 연산을 취한 \<fvalue\>의 길이와 동일하여야 한다.
- \<compop\> \<fvalue\>
- \<bitwvalue\>는 bitwise 연산을 취할 operand로 hexadecimal로 표현한다.
Copy link
Collaborator

Choose a reason for hiding this comment

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

operand로 => 값으로

Copy link
Collaborator

Choose a reason for hiding this comment

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

단순 변경만 하고, 문장을 읽어보지 않았네요.
문장을 읽어보면서 수정할 사항이 있는 지도 확인해 주세요.

@ing-eoking ing-eoking force-pushed the update branch 3 times, most recently from c86074e to 7e988dc Compare December 26, 2024 06:01
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.

리뷰 완료

@@ -102,28 +102,28 @@ bkey의 hexadecimal 표현과 저장 방식을 그대로 따른다.

eflag에 대한 filter 조건은 아래와 같이 표현하며,
(1) eflag의 전체/부분 값과 특정 값과의 compare 연산이나
(2) eflag의 전체/부분 값에 대해 어떤 operand로 bitwise 연산을 취한 후의 결과와 특정 값과의 compare 연산이다.
(2) eflag의 전체/부분 값에 대해 주어진 값과 bitwise 연산을 취한 결과와 특정 값과의 compare 연산이다.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"주어진 값과" 부분이 없어도 문장이 충분히 이해되니, 제거하시죠.

@@ -42,13 +42,13 @@ sub do_btree_efilter {
$bkrange = "0x" . "0"x62 . ".." . "0x" . "F"x62;

# prepare for making efilter.
my $foperand = "0x" . "F"x62;
my $bitwvalue = "0x" . "F"x62;
my $fvallist = "0x" . sprintf "%062d", 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

fvallist => compvallist

@@ -42,13 +42,13 @@ sub do_btree_efilter {
$bkrange = "0x" . "0"x62 . ".." . "0x" . "F"x62;

# prepare for making efilter.
my $foperand = "0x" . "F"x62;
my $bitwvalue = "0x" . "F"x62;
my $fvallist = "0x" . sprintf "%062d", 1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

fvallist => compvallist

- [\<bitwop\> \<foperand\>]
bitwise/compare 연산을 취할 데이터의 length는 \<compvalue\>의 length로 한다.
예를 들어, eflag 전체 데이터를 선택한다면, \<offset\>은 0이어야 하고
\<compvalue\>의 length는 eflag 전체 데이터의 length와 동일하여야 한다.
Copy link
Collaborator

Choose a reason for hiding this comment

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

offset 설명을 아래와 같이 합시다.

  • eflag 값에서 bitwise/compare 연산을 취할 시작 offset을 바이트 단위로 나타낸다.
  • offset과 bitwise/compare 연산을 취할 데이터 length의 합은 eflag 데이터의 length보다 작거나 같아야 한다.
  • 예를 들어, eflag 전체 데이터와 비교한다면, <offset>은 0이어야 <compvalue>의 length는 eflag 전체 데이터의 length와 동일하여야 한다.

\<fvalue\>는 eflag 부분 데이터에 대해 bitwise 연산을 취할 operand로 사용되며,
- 앞서 기술한 \<offset\>과 \<bitwop\>가 생략되면, eflag의 전체 데이터를 \<value\>로 변경한다.
부분 변경을 위한 \<offset\>과 \<bitwop\>가 지정되면
\<value\>는 eflag 부분 데이터에 대해 bitwise 연산을 취할 operand로 사용되며,
Copy link
Collaborator

Choose a reason for hiding this comment

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

operand로 => 데이터로

@jhpark816 jhpark816 merged commit 60700d8 into naver:develop Dec 26, 2024
1 check passed
@ing-eoking ing-eoking deleted the update branch December 27, 2024 00:20
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/naver/arcus-memcached/pull/812

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy