mirror of https://gitee.com/bigwinds/arangodb
don't fail when non-array, but simply ignore it
This commit is contained in:
parent
56987e1ddd
commit
34fa3e60ad
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue