masstree: remove_value_if_present() を追加し DELETE-commit パスで使用 (#59)#79
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #59
変更内容
MasstreeWrapperに戻り値 void の「あれば消す」wrapperremove_value_if_present(std::string_view)を追加し、DELETE-commit 文脈でStatusを捨てている 8 callsite (5 protocol) を置き換えた。wrapper 追加
include/masstree_wrapper.hh—remove_value()を(void)で呼ぶだけの薄い wrapper。(void)キャストの boilerplate を消し、「Status を意図的に捨てている」というシグナルを呼び出し側に与える。置き換えた callsite (8 箇所 / 5 protocol)
(void)...remove_value(...)だった 5 箇所、および元々戻り値レスで...remove_value(...)を呼んでいた 3 箇所を、すべて...remove_value_if_present(...)に統一。MasstreeWrapper側 + callsite 置き換えのみで、protocol-specific なロックタイミング・GC キュー push 順序には一切触れていない。DELETE-commit 文脈でないremove_value呼び出し (Status を実際に使うもの) は変更なし。Test plan
GCC 13 (CI と同じコンパイラ) で全バイナリをフルビルド。5 protocol 含め全 target 緑 (exit 0)。
-DCMAKE_BUILD_TYPE=Release -DENABLE_SANITIZER=OFF): OK-DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZER=ON): OK