mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-30 17:23:13 +02:00
eliminate copy of hash table
This commit is contained in:
parent
91a165b4c3
commit
be74218d93
2 changed files with 3 additions and 8 deletions
libraries/entities/src
|
@ -1428,9 +1428,9 @@ void EntityTree::removeCertifiedEntityOnServer(EntityItemPointer entity) {
|
|||
}
|
||||
|
||||
void EntityTree::startDynamicDomainVerificationOnServer(float minimumAgeToRemove) {
|
||||
QHash<QString, EntityItemID> localMap(getEntityCertificateIDMap());
|
||||
QHashIterator<QString, EntityItemID> i(localMap);
|
||||
qCDebug(entities) << localMap.size() << "certificates present.";
|
||||
QReadLocker locker(&_entityCertificateIDMapLock);
|
||||
QHashIterator<QString, EntityItemID> i(_entityCertificateIDMap);
|
||||
qCDebug(entities) << _entityCertificateIDMap.size() << "certificates present.";
|
||||
while (i.hasNext()) {
|
||||
i.next();
|
||||
const auto& certificateID = i.key();
|
||||
|
|
|
@ -157,11 +157,6 @@ public:
|
|||
return _recentlyDeletedEntityItemIDs;
|
||||
}
|
||||
|
||||
QHash<QString, EntityItemID> getEntityCertificateIDMap() const {
|
||||
QReadLocker locker(&_entityCertificateIDMapLock);
|
||||
return _entityCertificateIDMap;
|
||||
}
|
||||
|
||||
void forgetEntitiesDeletedBefore(quint64 sinceTime);
|
||||
|
||||
int processEraseMessage(ReceivedMessage& message, const SharedNodePointer& sourceNode);
|
||||
|
|
Loading…
Reference in a new issue