-
Notifications
You must be signed in to change notification settings - Fork 16
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 dummy fetch in the get API #334
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฆฌ๋ทฐ ์๋ฃ
*value_length= memcached_string_length(&result->value); | ||
if (flags) | ||
*flags= result->item_flags; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
memcached_fetch_result() != NULL ๊ฒฝ์ฐ๊ฐ 2ํ ์ด์ ๋ฐ์ํ๋ ๊ฒฝ์ฐ๋ ๊ณ ๋ คํ์์ฃ .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ํ๋์ key๋ฅผ ๊ฐ์ ธ์ค๋ ์ฐ์ฐ์์๋ ์ผ๋ฐ์ ์ผ๋ก ๊ทธ๋ฐ ์ํฉ์ด ๋ฐ์ํ์ง ์์ ๊ฒ์ผ๋ก ์์๋์ง๋ง,
๋ง์ฝ 2ํ ์ด์ ๋ฐ์ํ๋ค๋ฉด ํ์ฌ ๊ตฌํ์ฒ๋ผ END ์ด์ ์ ๊ฐ์ฅ ๋ง์ง๋ง ๊ฐ์ ๋ฐํํ๋ ํํ๊ฐ ๋ ์ ์ ํ ๊ฒ ๊ฐ์ต๋๋ค.
if (success_occurred) | ||
{ | ||
*error= MEMCACHED_SUCCESS; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
success_occurred ๊ฒฝ์ฐ๋ value != NULL ์ํ์
๋๋ค.
success_occurred ๋ณ์๊ฐ ํ์ ์์ ๊ฒ ๊ฐ์ต๋๋ค.
๊ทธ๋ฆฌ๊ณ , ์ด๋ฌํ ์ฝ๋๋ value == NULL
๊ฒฝ์ฐ์ ๋ํ ์ฒ๋ฆฌ ์ฝ๋ ๋ค์์ ์์นํ๋ ๊ฒ์ด ์ข๊ฒ ์ต๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value์ ๋น ๋ฌธ์์ด์ ์ ์ฅํ์ ๊ฒฝ์ฐ, value == NULL
์ด ๋ ์ ์์ต๋๋ค.
์ฉ์ด๋ฅผ success_occurred์์ is_value_fetched๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
๐ Related Issue
โจ๏ธ What I did
ํ์ฌ CentOS7 ํ๊ฒฝ์์ ํ ์คํธ๋ฅผ ์งํํ๋ ๊ฒฝ์ฐ, develop ๋ธ๋์น์์๋ ๋์ผํ๊ฒ ์๋์ ํ ์คํธ๊ฐ ์คํจํฉ๋๋ค.์์ mop_upsert API๋ฅผ ๊ฐ๋ฐํ๋ ๊ณผ์ ์์ ๋ฌธ์ ๊ฐ ์์๋ ๊ฒ์ผ๋ก ๋ณด์ด๋ฉฐ, ์์ธ ๋ถ์์ค์ ์์ต๋๋ค.mop upsert
๊ฐ ์๋ ๊ตฌ๋ฒ์ ์ด๋ผ ์๊ธด ๋ฌธ์ ์์ต๋๋ค.