-
Notifications
You must be signed in to change notification settings - Fork 20
RDKB-62330 : Selfheal to recover devices when subdoc version mismatch #89
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
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,7 @@ | |||||
| #include "tad_rbus_apis.h" | ||||||
| #include "lowlatency_apis.h" | ||||||
| #include "current_time.h" | ||||||
| #include "webcfg_selfheal.h" | ||||||
| #include <telemetry_busmessage_sender.h> | ||||||
|
|
||||||
| #ifdef DEVICE_PRIORITIZATION_ENABLED | ||||||
|
|
@@ -367,6 +368,14 @@ int main(int argc, char* argv[]) | |||||
|
|
||||||
| // Init LatencyMeasurent | ||||||
| LatencyMeasurementInit(); | ||||||
|
|
||||||
| // SelfHeal Subdoc Version Mismatch | ||||||
| initWebcfgProperties(WEBCFG_PROPERTIES_FILE); | ||||||
| int webcfg_ret = webcfg_subdoc_mismatch_boot_check(); | ||||||
| if (webcfg_ret != 0) | ||||||
| { | ||||||
| fprintf(stderr, "Error: webcfg_subdoc_mismatch_boot_check failed during initialization (ret=%d)\n", webcfg_ret); | ||||||
| } | ||||||
|
Comment on lines
+374
to
+378
|
||||||
|
|
||||||
| //crate a thread to update time thread for ethwan enable mode | ||||||
|
||||||
| //crate a thread to update time thread for ethwan enable mode | |
| //create a thread to update time thread for ethwan enable mode |
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 webcfg_selfheal.c file uses cJSON library functions (cJSON_Parse, cJSON_Delete, cJSON_GetObjectItemCaseSensitive, etc.) but the Makefile.am does not include -lcjson in the LDFLAGS. This will likely cause linker errors unless cJSON is already implicitly linked through another dependency. The LDFLAGS should explicitly include -lcjson.