修改data

Signed-off-by: wuxiaodan <wuxiaodan5@huawei.com>
This commit is contained in:
wuxiaodan 2022-07-06 17:08:49 +08:00
parent b70cbd2a43
commit 7a65efe6c5
2 changed files with 5 additions and 2 deletions

View File

@ -140,7 +140,7 @@ int writeCodeDataToShm(int code, char* buf)
char* str = (char*)malloc(MAX_DATA_LENGTH);
if (str == nullptr) {
LOG("malloc fail");
return nullptr;
return -1;
}
(void)memset_s(str, MAX_DATA_LENGTH, 0, MAX_DATA_LENGTH);

View File

@ -365,14 +365,17 @@ void DistributedKvDataManagerTest::TearDown(void)
}
void DistributedKvDataManagerTest::RemoveAllStore(DistributedKvDataManager manager)
{
LOG("%s ::RemoveAllStore begin... ", LOGSTR);
DisKvTest::statusCloseKvStore = DisKvTest::manager.CloseAllKvStore(DisKvTest::appId);
DisKvTest::statusDeleteKvStore = DisKvTest::manager.DeleteAllKvStore(DisKvTest::appId);
LOG("%s CloseAllKvStore", LOGSTR);
if (DisKvTest::statusCloseKvStore == Status::SUCCESS) {
LOG("%s SUCCESS: local---CloseAllKvStore ", LOGSTR);
} else {
LOG("%s ERR: local---CloseAllKvStore ", LOGSTR);
}
DisKvTest::statusDeleteKvStore = DisKvTest::manager.DeleteAllKvStore(DisKvTest::appId);
LOG("%s DeleteAllKvStore", LOGSTR);
if (DisKvTest::statusDeleteKvStore == Status::SUCCESS) {
LOG("%s SUCCESS: local---DeleteAllKvStore ", LOGSTR);
} else {