修改条件竞争告警

Signed-off-by: torrizo <lishenhao2@huawei.com>
This commit is contained in:
torrizo 2024-10-11 15:15:08 +00:00 committed by Gitee
parent 4bfb1f7e96
commit 4b75b72c4a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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();