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;
|
using namespace arangodb;
|
||||||
|
|
||||||
RocksDBCounterManager::Counter::Counter(VPackSlice const& slice) {
|
RocksDBCounterManager::Counter::Counter(VPackSlice const& slice) {
|
||||||
TRI_ASSERT(slice.isArray());
|
if (slice.isArray()) {
|
||||||
|
velocypack::ArrayIterator array(slice);
|
||||||
velocypack::ArrayIterator array(slice);
|
if (array.valid()) {
|
||||||
if (array.valid()) {
|
this->sequenceNumber = (*array).getUInt();
|
||||||
this->sequenceNumber = (*array).getUInt();
|
this->count = (*(++array)).getUInt();
|
||||||
this->count = (*(++array)).getUInt();
|
this->revisionId = (*(++array)).getUInt();
|
||||||
this->revisionId = (*(++array)).getUInt();
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue