Rename the delete_late conflict to delete_exists#391
Conversation
"Exists" means for us that something exists that is unexpected, such as for insert_exists. In the delete_exists case, it is unexpected that a newer timestamped row exists.
📝 WalkthroughWalkthroughThe pull request renames the enum member Changes
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
include/spock_conflict.h (1)
79-81: Duplicate extern declarations.These three extern variable declarations duplicate the ones at lines 42-44. While technically valid in C, this redundancy could lead to maintenance issues if one set is updated but not the other.
🔧 Suggested fix: Remove duplicate declarations
-extern int spock_conflict_resolver; -extern int spock_conflict_log_level; -extern bool spock_save_resolutions; - typedef enum🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@include/spock_conflict.h` around lines 79 - 81, Remove the duplicate extern declarations for spock_conflict_resolver, spock_conflict_log_level, and spock_save_resolutions by deleting the redundant extern int/ bool lines (the second set) so only the original declarations remain; locate the duplicate block that repeats the extern declarations for those three symbols and remove it to avoid maintenance drift.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@include/spock_conflict.h`:
- Around line 79-81: Remove the duplicate extern declarations for
spock_conflict_resolver, spock_conflict_log_level, and spock_save_resolutions by
deleting the redundant extern int/ bool lines (the second set) so only the
original declarations remain; locate the duplicate block that repeats the extern
declarations for those three symbols and remove it to avoid maintenance drift.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 52053ffb-b279-4c39-a53c-d58404e66b11
⛔ Files ignored due to path filters (1)
tests/regress/expected/tuple_origin.outis excluded by!**/*.out
📒 Files selected for processing (4)
include/spock_conflict.hsrc/spock_apply_heap.csrc/spock_conflict.ctests/regress/sql/tuple_origin.sql
"Exists" means for us that something exists that is unexpected, such as an existing row for insert_exists. In the delete_exists case, it is unexpected that a newer timestamped row exists.