mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding Venue/Entity self-discovery
This commit is contained in:
@@ -527,14 +527,18 @@ namespace ORM {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
uint64_t Offset=1;
|
uint64_t Offset=1;
|
||||||
|
uint64_t Batch=50;
|
||||||
bool Done=false;
|
bool Done=false;
|
||||||
while(!Done) {
|
while(!Done) {
|
||||||
std::vector<RecordType> Records;
|
std::vector<RecordType> Records;
|
||||||
if(GetRecords(Offset,50,Records)) {
|
if(GetRecords(Offset,Batch,Records)) {
|
||||||
for(const auto &i:Records) {
|
for(const auto &i:Records) {
|
||||||
if(!F(i))
|
if(!F(i))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if(Records.size()<Batch)
|
||||||
|
return true;
|
||||||
|
Offset += Batch;
|
||||||
} else {
|
} else {
|
||||||
Done=true;
|
Done=true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user