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