-
Notifications
You must be signed in to change notification settings - Fork 367
Make sairedis/syncd synchronous #476
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 all commits
2164db2
1ac4181
f0c6b97
5ee0f99
a7faff8
485cd00
475a78a
72d9f70
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 |
|---|---|---|
|
|
@@ -21,7 +21,7 @@ sai_status_t internal_redis_generic_remove( | |
|
|
||
| g_asicState->del(key, "remove"); | ||
|
|
||
| return SAI_STATUS_SUCCESS; | ||
| return internal_api_wait_for_response(SAI_COMMON_API_REMOVE); | ||
| } | ||
|
|
||
| sai_status_t redis_generic_remove( | ||
|
|
@@ -118,10 +118,10 @@ sai_status_t internal_redis_bulk_generic_remove( | |
| } | ||
|
|
||
| /* | ||
| * Capital 'C' stands for bulk CREATE operation. | ||
| * Capital 'R' stands for bulk CREATE operation. | ||
| */ | ||
|
|
||
| recordLine("C|" + str_object_type + joined); | ||
| recordLine("R|" + str_object_type + joined); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Is there a wiki page to summarize all the special char used in recording? If not, please create one. Alternatively, how about centralized the definition in one header file and use constants or macros in code?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we set such a rule that, small letter means request, capital letter is for response?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. actually m/M should be removed since it's not SAI api call, its's request for counters subscription now, and recording should log only sai call's
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks @jipanyang ! I still suggest to maintain it as any of the below options:
Nowadays it is hard to find, and easy to conflict. |
||
| } | ||
|
|
||
| // key: object_type:count | ||
|
|
@@ -134,7 +134,7 @@ sai_status_t internal_redis_bulk_generic_remove( | |
| g_asicState->set(key, entries, "bulkremove"); | ||
| } | ||
|
|
||
| return SAI_STATUS_SUCCESS; | ||
| return internal_api_wait_for_response(SAI_COMMON_API_CREATE); | ||
| } | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.