mirror of https://gitee.com/bigwinds/arangodb
Fixed a bad access bug
This commit is contained in:
parent
771a6d5143
commit
d1ac131294
|
@ -428,8 +428,11 @@ namespace triagens {
|
|||
}
|
||||
TRI_ASSERT(batchSize > 0);
|
||||
TRI_doc_mptr_t const* ptr = nullptr;
|
||||
do {
|
||||
while (count < batchSize) {
|
||||
ptr = document->primaryIndex()->lookupSequential(internalSkip, total);
|
||||
if (ptr == nullptr) {
|
||||
break;
|
||||
}
|
||||
if (skip > 0) {
|
||||
--skip;
|
||||
}
|
||||
|
@ -440,7 +443,6 @@ namespace triagens {
|
|||
}
|
||||
}
|
||||
}
|
||||
while (ptr != nullptr && count < batchSize);
|
||||
}
|
||||
catch (...) {
|
||||
this->unlock(trxCollection, TRI_TRANSACTION_READ);
|
||||
|
|
Loading…
Reference in New Issue