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: Remove reverse arg in bopGet and bopExtendedGet #861

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

brido4125
Copy link
Collaborator

🔗 Related Issue

https://github.com/jam2in/arcus-works/issues/656

⌨️ What I did

private 접근 제어인 asyncBopGet, asyncBopExtendedGet의
reverse 인자를 제거하고
이를 BopGet 인스턴스의 isReverse로 대체한다.

@jhpark816 jhpark816 requested a review from oliviarla January 3, 2025 02:36
@brido4125 brido4125 self-assigned this Jan 3, 2025
Copy link
Collaborator

@oliviarla oliviarla left a comment

Choose a reason for hiding this comment

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

리뷰 완료입니다.

src/main/java/net/spy/memcached/ArcusClient.java Outdated Show resolved Hide resolved
oliviarla
oliviarla previously approved these changes Jan 3, 2025
@brido4125 brido4125 requested a review from jhpark816 January 3, 2025 07:47
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.

리뷰 완료

@@ -26,6 +26,7 @@ public class BTreeGet extends CollectionGet {
protected int offset = -1;
protected int count = -1;
protected ElementFlagFilter elementFlagFilter;
private boolean reverse;
Copy link
Collaborator

Choose a reason for hiding this comment

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

offset, count 필드처럼 reverse 필드는 false로 초기화

@@ -36,6 +37,7 @@ private BTreeGet(String range,
this.elementFlagFilter = elementFlagFilter;
this.eHeadCount = 2;
this.eFlagIndex = 1;
this.reverse = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

앞에서 초기화하였으므로, 이 코드는 없어도 됨

@@ -52,24 +54,30 @@ public BTreeGet(byte[] bkey,

private BTreeGet(String range, int offset, int count,
boolean delete, boolean dropIfEmpty,
ElementFlagFilter elementFlagFilter) {
ElementFlagFilter elementFlagFilter, boolean reverse) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

range, reverse, offset, count, .... 순서이면 좋겠습니다.

from, to 값을 <String 타입의 range 값, boolean 타입의 reverse 값> 으로 변환하여 보관한다고 보면 될 것 같습니다.

@jhpark816 jhpark816 merged commit db1c636 into naver:develop Jan 3, 2025
2 checks passed
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.

3 participants