Skip to content

[Feature] enhance status to ensure consistency#37

Open
DwyaneShi wants to merge 1 commit intoaibrix:devfrom
DwyaneShi:haiyang/status-opt
Open

[Feature] enhance status to ensure consistency#37
DwyaneShi wants to merge 1 commit intoaibrix:devfrom
DwyaneShi:haiyang/status-opt

Conversation

@DwyaneShi
Copy link
Collaborator

Pull Request Description

[Please provide a clear and concise description of your changes here]

Related Issues

Resolves: #[Insert issue number(s)]

Important: Before submitting, please complete the description above and review the checklist below.


Contribution Guidelines (Expand for Details)

We appreciate your contribution to PrisKV! To ensure a smooth review process and maintain high code quality, please adhere to the following guidelines:

Pull Request Title Format

Your PR title should start with one of these prefixes to indicate the nature of the change:

  • [Bug]: Corrections to existing functionality
  • [CI]: Changes to build process or CI pipeline
  • [Docs]: Updates or additions to documentation
  • [API]: Modifications to PrisKV's API or interface
  • [CLI]: Changes or additions to the Command Line Interface
  • [Misc]: For changes not covered above (use sparingly)

Note: For changes spanning multiple categories, use multiple prefixes in order of importance.

Submission Checklist

  • PR title includes appropriate prefix(es)
  • Changes are clearly explained in the PR description
  • New and existing tests pass successfully
  • Code adheres to project style and best practices
  • Documentation updated to reflect changes (if applicable)
  • Thorough testing completed, no regressions introduced

By submitting this PR, you confirm that you've read these guidelines and your changes align with the project's contribution standards.

@DwyaneShi DwyaneShi force-pushed the haiyang/status-opt branch 2 times, most recently from d12bb04 to f655ed3 Compare March 16, 2026 20:30
#define PRISKV_DECLARE_STATUS(NAME, CODE, STR, IS_RESP_STATUS) .value("PRISKV_STATUS_" #NAME, PRISKV_CLUSTER_STATUS_##NAME)
#include "priskv-cluster-status.inc"
#undef PRISKV_DECLARE_STATUS
;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+#undef PRISKV_DECLARE_RESP_STATUS_0
+#undef PRISKV_DECLARE_RESP_STATUS_1
+#define PRISKV_DECLARE_RESP_STATUS_1(NAME, CODE) .value("PRISKV_STATUS_" #NAME, PRISKV_CLUSTER_STATUS_##NAME)
+#define PRISKV_DECLARE_RESP_STATUS_0(NAME, CODE)
+#define PRISKV_DECLARE_STATUS(NAME, CODE, STR, IS_RESP_STATUS) PRISKV_DECLARE_RESP_STATUS_##IS_RESP_STATUS(NAME, CODE)
#include "priskv-cluster-status.inc"
+#undef PRISKV_DECLARE_RESP_STATUS_0
+#undef PRISKV_DECLARE_RESP_STATUS_1

should we just export status with IS_RESP_STATUS = 1 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense. updated as suggested.

Signed-off-by: Haiyang Shi <haiyang.shi@bytedance.com>
@DwyaneShi DwyaneShi force-pushed the haiyang/status-opt branch from f655ed3 to 88e4057 Compare March 17, 2026 18:06
@yapple
Copy link

yapple commented Mar 18, 2026

LGTM

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.

2 participants