mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-27 01:40:46 +00:00
修改data
Signed-off-by: wuxiaodan <wuxiaodan5@huawei.com>
This commit is contained in:
parent
b70cbd2a43
commit
7a65efe6c5
@ -140,7 +140,7 @@ int writeCodeDataToShm(int code, char* buf)
|
|||||||
char* str = (char*)malloc(MAX_DATA_LENGTH);
|
char* str = (char*)malloc(MAX_DATA_LENGTH);
|
||||||
if (str == nullptr) {
|
if (str == nullptr) {
|
||||||
LOG("malloc fail");
|
LOG("malloc fail");
|
||||||
return nullptr;
|
return -1;
|
||||||
}
|
}
|
||||||
(void)memset_s(str, MAX_DATA_LENGTH, 0, MAX_DATA_LENGTH);
|
(void)memset_s(str, MAX_DATA_LENGTH, 0, MAX_DATA_LENGTH);
|
||||||
|
|
||||||
|
@ -365,14 +365,17 @@ void DistributedKvDataManagerTest::TearDown(void)
|
|||||||
}
|
}
|
||||||
void DistributedKvDataManagerTest::RemoveAllStore(DistributedKvDataManager manager)
|
void DistributedKvDataManagerTest::RemoveAllStore(DistributedKvDataManager manager)
|
||||||
{
|
{
|
||||||
|
LOG("%s ::RemoveAllStore begin... ", LOGSTR);
|
||||||
DisKvTest::statusCloseKvStore = DisKvTest::manager.CloseAllKvStore(DisKvTest::appId);
|
DisKvTest::statusCloseKvStore = DisKvTest::manager.CloseAllKvStore(DisKvTest::appId);
|
||||||
DisKvTest::statusDeleteKvStore = DisKvTest::manager.DeleteAllKvStore(DisKvTest::appId);
|
LOG("%s CloseAllKvStore", LOGSTR);
|
||||||
if (DisKvTest::statusCloseKvStore == Status::SUCCESS) {
|
if (DisKvTest::statusCloseKvStore == Status::SUCCESS) {
|
||||||
LOG("%s SUCCESS: local---CloseAllKvStore ", LOGSTR);
|
LOG("%s SUCCESS: local---CloseAllKvStore ", LOGSTR);
|
||||||
} else {
|
} else {
|
||||||
LOG("%s ERR: local---CloseAllKvStore ", LOGSTR);
|
LOG("%s ERR: local---CloseAllKvStore ", LOGSTR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DisKvTest::statusDeleteKvStore = DisKvTest::manager.DeleteAllKvStore(DisKvTest::appId);
|
||||||
|
LOG("%s DeleteAllKvStore", LOGSTR);
|
||||||
if (DisKvTest::statusDeleteKvStore == Status::SUCCESS) {
|
if (DisKvTest::statusDeleteKvStore == Status::SUCCESS) {
|
||||||
LOG("%s SUCCESS: local---DeleteAllKvStore ", LOGSTR);
|
LOG("%s SUCCESS: local---DeleteAllKvStore ", LOGSTR);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user