-
Notifications
You must be signed in to change notification settings - Fork 758
[Store] Fix with_hard_pin failure in python API
#1873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,7 @@ typedef void *mooncake_store_t; | |
| struct mooncake_replicate_config { | ||
| size_t replica_num; | ||
| int with_soft_pin; | ||
| int with_hard_pin; | ||
| const char **preferred_segments; | ||
|
Comment on lines
27
to
31
|
||
| size_t preferred_segments_count; | ||
| }; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ mooncake::ReplicateConfig to_replicate_config( | |
|
|
||
| config.replica_num = c_config->replica_num; | ||
| config.with_soft_pin = c_config->with_soft_pin != 0; | ||
| config.with_hard_pin = c_config->with_hard_pin != 0; | ||
| if (c_config->preferred_segments && | ||
|
Comment on lines
46
to
49
|
||
| c_config->preferred_segments_count > 0) { | ||
| for (size_t i = 0; i < c_config->preferred_segments_count; ++i) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Python-exposed
with_hard_pinflag should be covered by the existing Python wheel tests that validateReplicateConfigproperty access (e.g., default value and assignment), otherwise this regression can reappear unnoticed.