Remove dead duplicate Verify() from ft_search_parser - #1367
allenss-amazon wants to merge 1 commit into
Conversation
valkey-io#527 (ed06484) renamed the anonymous-namespace Verify() to VerifyQueryString(), gave it external linkage so FT.AGGREGATE could call it, and updated its only call site. valkey-io#618 (9b29188) then re-added the original Verify() body verbatim, with no caller -- a copy/paste slip. The resurrected copy has been unreachable ever since, and no commit has touched either validation body since, so it is still byte-identical to VerifyQueryString(). Deleting it removes no check that VerifyQueryString() does not already perform. No behavior change. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CmmwNpR7mMTD7CcTF9Xbd5 Signed-off-by: Allen Samuels <allenss@amazon.com>
|
Reviewers for this PR
Assigned automatically to the least-assigned members of the reviewer pools in |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe patch relocates query validation from the anonymous namespace to ChangesQuery verification
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to This change removes an unused duplicate query-validation function without altering the active validation path. No merge-readiness risk is identified. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deletes the unreachable
Verify()in the anonymous namespace ofsrc/commands/ft_search_parser.cc.History:
ed06484) renamedVerify()toVerifyQueryString(), gave it external linkage so FT.AGGREGATE could call it, and updated the only call site.9b29188) re-added the originalVerify()body verbatim, with no caller. Looks like a copy/paste slip.No commit since has touched either validation body, so the dead copy is still byte-identical to
VerifyQueryString(). It performs no check thatVerifyQueryString()does not already perform.No behavior change. Release build and all 23 unit test suites pass.
🤖 Generated with Claude Code
https://claude.ai/code/session_01CmmwNpR7mMTD7CcTF9Xbd5