Skip to content

[feature] add rewrite-command flag to mark commands needing rewrite - #438

Open
qiongtubao wants to merge 1 commit into
mainfrom
feature/gtid_rewrite_commands
Open

[feature] add rewrite-command flag to mark commands needing rewrite#438
qiongtubao wants to merge 1 commit into
mainfrom
feature/gtid_rewrite_commands

Conversation

@qiongtubao

Copy link
Copy Markdown

Introduce CMD_REWRITE_COMMAND (1ULL<<40) and parse the 'rewrite-command' string flag in commandFlagsFromString. Apply the flag to the relevant write/blocking commands in both the native redisCommandTable (src/server.c) and the swap command table (src/ctrip_swap_cmd.c) so they can be identified as commands that require rewriting. Also add tests/support/gtid_version.tcl symlink and bump the xredis-gtid submodule.

@qiongtubao
qiongtubao force-pushed the feature/gtid_rewrite_commands branch 4 times, most recently from 3955c39 to e35e261 Compare July 30, 2026 08:17
Introduce CMD_REWRITE_COMMAND (1ULL<<40) and parse the 'rewrite-command' string flag in commandFlagsFromString. Apply the flag to the relevant write/blocking commands in both the native redisCommandTable (src/server.c) and the swap command table (src/ctrip_swap_cmd.c) so they can be identified as commands that require rewriting. Also add tests/support/gtid_version.tcl symlink and bump the xredis-gtid submodule.
@qiongtubao
qiongtubao force-pushed the feature/gtid_rewrite_commands branch from e35e261 to 1ace699 Compare July 30, 2026 11:09
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.

1 participant