|
|
|
@ -986,6 +986,8 @@ void SGTerraSync::WorkerThread::drainWaitingTiles()
|
|
|
|
|
<< " next._dir=" << next._dir
|
|
|
|
|
<< " cacheStatus=" << cacheStatus
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
if (cacheStatus != SyncItem::Invalid) {
|
|
|
|
|
incrementCacheHits();
|
|
|
|
|
SG_LOG(SG_TERRASYNC, SG_BULK, "TerraSync Cache hit for: '" << next._dir << "'");
|
|
|
|
@ -997,6 +999,22 @@ void SGTerraSync::WorkerThread::drainWaitingTiles()
|
|
|
|
|
const auto slot = syncSlotForType(next._type);
|
|
|
|
|
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
|
|
|
|
_syncSlots[slot].queue.push_back(next);
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
//zhongjin 11-14
|
|
|
|
|
|
|
|
|
|
if (cacheStatus == SyncItem::Invalid) {
|
|
|
|
|
const auto slot = syncSlotForType(next._type);
|
|
|
|
|
SG_LOG(SG_TERRASYNC, SG_INFO, "adding to _syncSlots slot=" << slot);
|
|
|
|
|
_syncSlots[slot].queue.push_back(next);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
incrementCacheHits();
|
|
|
|
|
SG_LOG(SG_TERRASYNC, SG_BULK, "TerraSync Cache hit for: '" << next._dir << "'");
|
|
|
|
|
next._status = cacheStatus;
|
|
|
|
|
_freshTiles.push_back(next);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|