mirror of
https://gitee.com/openharmony/deviceprofile_device_info_manager
synced 2025-02-17 06:08:26 +00:00
修改条件竞争告警
Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
parent
4bfb1f7e96
commit
4b75b72c4a
@ -64,7 +64,7 @@ int32_t KVAdapter::Init()
|
||||
int64_t beginTime = GetTickCount();
|
||||
while (tryTimes > 0) {
|
||||
DistributedKv::Status status = GetKvStorePtr(dataType_);
|
||||
if (kvStorePtr_ && status == DistributedKv::Status::SUCCESS) {
|
||||
if (status == DistributedKv::Status::SUCCESS) {
|
||||
int64_t endTime = GetTickCount();
|
||||
HILOGI("Init KvStorePtr Success, spend %{public}" PRId64 " ms", endTime - beginTime);
|
||||
RegisterSyncCompletedListener();
|
||||
|
Loading…
x
Reference in New Issue
Block a user