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

TEST: Split each step of the mset test code into functions. #303

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

uhm0311
Copy link
Collaborator

@uhm0311 uhm0311 commented Aug 20, 2024

๐Ÿ”— Related Issue

โŒจ๏ธ What I did

  • mset ํ…Œ์ŠคํŠธ ์ฝ”๋“œ๋ฅผ ๊ฐ ๋‹จ๊ณ„๋ณ„ ํ•จ์ˆ˜๋กœ ๋ถ„๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
    • req ๊ฐ์ฒด ์ƒ์„ฑ
    • API ํ˜ธ์ถœ ๊ฒฐ๊ณผ memcached_return_t ๊ฐ’ ๊ฒ€์ฆ
    • get ํ•จ์ˆ˜๋กœ ์„œ๋ฒ„์— ์ €์žฅํ•œ ๊ฐ’ ๊ฒ€์ฆ
  • ์ถ”ํ›„์— ์ถ”๊ฐ€ํ•  madd, mreplace ๋“ฑ์˜ ํ…Œ์ŠคํŠธ ์ฝ”๋“œ์—์„œ ๊ฐ ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค.

@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 7 times, most recently from f4c65d0 to ab6a4f3 Compare August 20, 2024 06:13
@jhpark816
Copy link
Contributor

@uhm0311 CI ํ…Œ์ŠคํŠธ ํ™•์ธ ๋ฐ”๋ž๋‹ˆ๋‹ค.

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.

์ผ๋ถ€ ๋ฆฌ๋ทฐ

@@ -17,48 +17,55 @@ static inline void safe_free(void *ptr)
}
}

static inline void safe_free_req(memcached_storage_request_st req[MSET_COUNT])
static inline void safe_free_req(memcached_storage_request_st req[REQ_COUNT])
Copy link
Contributor

@jhpark816 jhpark816 Aug 20, 2024

Choose a reason for hiding this comment

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

safe_free_req() ํ•จ์ˆ˜์˜ ์ธ์ž๋Š” ์•„๋ž˜์™€ ๊ฐ™์ด 2๊ฐœ์ด์–ด์•ผ ํ•˜์ง€ ์•Š๋‚˜์š”?

safe_free_req(memcached_storage_request_st *req, int req_count)
{
  for (int i= 0; i < req_count; i++)
  {	 

  }

}

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

๊ฐœ์ˆ˜๊ฐ€ ํ•ญ์ƒ REQ_COUNT๋กœ ์ •ํ•ด์ ธ ์žˆ์œผ๋ฏ€๋กœ ์ƒ๋žตํ–ˆ์Šต๋‹ˆ๋‹ค.

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
tests/storage.cc Outdated Show resolved Hide resolved
tests/storage.cc Outdated Show resolved Hide resolved
tests/storage.cc Show resolved Hide resolved
tests/storage.cc Show resolved Hide resolved
@uhm0311 uhm0311 force-pushed the uhm0311/develop branch 2 times, most recently from e8d4b26 to 384fa7f Compare August 20, 2024 07:24
@uhm0311 uhm0311 requested a review from jhpark816 August 20, 2024 07:24
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
@uhm0311 uhm0311 requested a review from jhpark816 August 20, 2024 08:46
@jhpark816 jhpark816 merged commit 589a5d4 into naver:develop Aug 20, 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