1
0
Fork 0

don't fail when non-array, but simply ignore it

This commit is contained in:
jsteemann 2017-04-10 15:20:16 +02:00
parent 56987e1ddd
commit 34fa3e60ad
1 changed files with 7 additions and 7 deletions

View File

@ -40,13 +40,13 @@
using namespace arangodb;
RocksDBCounterManager::Counter::Counter(VPackSlice const& slice) {
TRI_ASSERT(slice.isArray());
velocypack::ArrayIterator array(slice);
if (array.valid()) {
this->sequenceNumber = (*array).getUInt();
this->count = (*(++array)).getUInt();
this->revisionId = (*(++array)).getUInt();
if (slice.isArray()) {
velocypack::ArrayIterator array(slice);
if (array.valid()) {
this->sequenceNumber = (*array).getUInt();
this->count = (*(++array)).getUInt();
this->revisionId = (*(++array)).getUInt();
}
}
}