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

FEATURE: Add multi-storage operations. #305

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Aug 21, 2024

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

  • madd, mreplace, mprepend, mappend, mcas API๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  • ๊ฐ API์— ๋Œ€ํ•œ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋„ ํ•จ๊ป˜ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.
  • ๊ฐ API๋Š” ์—๋Ÿฌ๋Š” ์•„๋‹ˆ์ง€๋งŒ ์—ฐ์‚ฐ์ด ์‹คํŒจํ•˜๋Š” ๊ฒฝ์šฐ(NOT_STORED, EXISTS ๋“ฑ)๊ฐ€ ์žˆ์œผ๋ฏ€๋กœ ์ด์— ๋Œ€ํ•œ ํ…Œ์ŠคํŠธ๋„ ํ•จ๊ป˜ ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค.

@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from 4cd9314 to 8d4551a Compare August 21, 2024 07:29
@jhpark816
Copy link
Contributor

@uhm0311 CI ํ…Œ์ŠคํŠธ ํ™•์ธํ•˜์„ธ์š”.

@uhm0311
Copy link
Collaborator Author

uhm0311 commented Aug 21, 2024

@namsic @ing-eoking

๋ฆฌ๋ทฐ ์‹œ์ž‘ํ•ด์ฃผ์„ธ์š”.

Copy link
Contributor

@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.

๋ฆฌ๋ทฐ ์™„๋ฃŒ

tests/storage.cc Outdated Show resolved Hide resolved
test_success= false;
goto do_return;
}
else if (is_noreply == true)
Copy link
Contributor

Choose a reason for hiding this comment

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

is_noreply ์—ฌ๋ถ€์— ๊ด€๊ณ„์—†์ด ์•„๋ž˜์˜ madd ์žฌ์ˆ˜ํ–‰ํ•˜์—ฌ ์‹คํŒจํ•˜๋Š” ์ง€๋ฅผ ํ™•์ธํ•˜๋ฉด ๋˜์ง€ ์•Š๋Š”์ง€ ?

Copy link
Collaborator Author

@uhm0311 uhm0311 Aug 21, 2024

Choose a reason for hiding this comment

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

noreply == true์ธ ๊ฒฝ์šฐ์—๋Š” NOT_STORED๋ผ๋Š” ์‘๋‹ต์„ ๋ฐ›์„ ์ˆ˜ ์—†๋Š”๋ฐ ๋ฌด์—‡์„ ๊ฒ€์ฆํ•ด์•ผ ํ•˜๋‚˜์š”?

goto do_return;
}

if (is_noreply == false)
Copy link
Contributor

@jhpark816 jhpark816 Aug 21, 2024

Choose a reason for hiding this comment

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

์—ฌ๊ธฐ๋„ is_noreply ๊ด€๊ณ„์—†์ด mreplace ์ˆ˜ํ–‰์ด ์‹คํŒจํ•˜๋Š” ๊ฒƒ์„ ํ™•์ธํ•˜๋ฉด ๋˜์ง€ ์•Š๋Š”์ง€?

๋‹ค๋ฅธ ํ…Œ์ŠคํŠธ์—์„œ๋„ ๋งˆ์ฐฌ๊ฐ€์ง€์ž…๋‹ˆ๋‹ค.

tests/storage.cc Outdated Show resolved Hide resolved
@@ -78,19 +79,24 @@ static bool create_req(memcached_storage_request_st req[REQ_COUNT], bool value_p

req[i].expiration= EXPIRE_TIME;
req[i].flags= (uint32_t) rand();
req[i].cas= UINT64_MAX;
Copy link
Contributor

Choose a reason for hiding this comment

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

์ด ๊ฐ’์„ ์„ค์ •ํ•˜๋Š” ์ด์œ ๋Š” ๋ฌด์—‡์ธ๊ฐ€์š”?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

2๊ฐ€์ง€ ์ด์œ ์ž…๋‹ˆ๋‹ค.

  • mcas๊ฐ€ ์•„๋‹Œ ๊ฒฝ์šฐ, cas ๊ฐ’์ด ์„ค์ •๋˜์–ด ์žˆ์–ด๋„ ๋ฌด์‹œ๋˜๋Š” ๊ฒƒ์„ ๊ฒ€์ฆ
  • mcas์ธ ๊ฒฝ์šฐ, cas ๊ฐ’์ด ์„œ๋ฒ„์— ์ €์žฅ๋œ ๊ฐ’๊ณผ ๋‹ค๋ฅผ ๋•Œ EXISTS ์‘๋‹ต์ด ์˜ค๋Š” ๊ฒƒ์„ ๊ฒ€์ฆ

@jhpark816 jhpark816 merged commit 98c2150 into naver:develop Aug 21, 2024
1 check 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