Skip to content

Commit 8011c35

Browse files
Delia 68355 main (rdkcentral#6308)
* RDKEMW-4795 : Account the case when ASSERT is no-op (rdkcentral#6256) Reason for change: Code in ASSERT seemingly did not run Test Procedure: Corrupt store is removed Risks: None Signed-off-by: Nikita Poltorapavlo <[email protected]> * update changelog and api version --------- Signed-off-by: Nikita Poltorapavlo <[email protected]>
1 parent 5a119ff commit 8011c35

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

PersistentStore/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ All notable changes to this RDK Service will be documented in this file.
1616

1717
* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
1818

19+
## [2.0.6] - 2025-06-30
20+
### Fixed
21+
- Account the case when ASSERT is no-op
22+
1923
## [2.0.5] - 2025-06-30
2024
### Fixed
2125
- Create or use backup on start

PersistentStore/PersistentStore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
#define API_VERSION_NUMBER_MAJOR 2
2424
#define API_VERSION_NUMBER_MINOR 0
25-
#define API_VERSION_NUMBER_PATCH 5
25+
#define API_VERSION_NUMBER_PATCH 6
2626

2727
namespace WPEFramework {
2828

PersistentStore/sqlite/Store2.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ namespace Plugin {
124124
sqlite3_close_v2(_data);
125125
if ((rc == SQLITE_CORRUPT) || (rc == SQLITE_NOTADB)) {
126126
OnError(__FUNCTION__, rc);
127-
ASSERT(file.Destroy());
127+
if (!file.Destroy()) {
128+
perror("remove failed");
129+
}
128130
_corrupt = true;
129131
}
130132
}

0 commit comments

Comments
 (0)