!8034 fix:close fd del auth

Merge pull request !8034 from zhanghaowen/master
This commit is contained in:
openharmony_ci 2024-10-14 08:02:39 +00:00 committed by Gitee
commit 8d6b80f5bf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 1 deletions

View File

@ -54,6 +54,7 @@ int32_t AuthMetaGetDeviceUuid(int64_t authId, char *uuid, uint16_t size);
int32_t AuthMetaGetConnIdByInfo(const AuthConnInfo *connInfo, uint32_t *connectionId);
void DelAuthMetaManagerByPid(const char *pkgName, int32_t pid);
void AuthMetaCheckMetaExist(const AuthConnInfo *connInfo, bool *isExist);
void DelAuthMetaManagerByConnectionId(uint32_t connectionId);
#ifdef __cplusplus
#if __cplusplus

View File

@ -184,3 +184,8 @@ void AuthMetaCheckMetaExist(const AuthConnInfo *connInfo, bool *isExist)
(void)connInfo;
(void)isExist;
}
void DelAuthMetaManagerByConnectionId(uint32_t connectionId)
{
(void)connectionId;
}

View File

@ -825,7 +825,7 @@ int32_t LnnDeleteMetaInfo(const char *udid, AuthLinkType type)
if (ret != SOFTBUS_OK) {
LNN_LOGE(LNN_LEDGER, "lnn map set failed, ret=%{public}d", ret);
}
LNN_LOGI(LNN_LEDGER, "LnnDeleteMetaInfo success");
LNN_LOGI(LNN_LEDGER, "LnnDeleteMetaInfo success, discType=%{public}d", discType);
SoftBusMutexUnlock(&g_distributedNetLedger.lock);
return SOFTBUS_OK;
}