mirror of https://gitee.com/bigwinds/arangodb
Added some small fixes
This commit is contained in:
parent
fdd5b3036d
commit
807d38784c
|
@ -433,7 +433,7 @@ MMFilesHashIndex::MultiArray::~MultiArray() {
|
||||||
MMFilesHashIndex::MMFilesHashIndex(TRI_idx_iid_t iid, LogicalCollection* collection,
|
MMFilesHashIndex::MMFilesHashIndex(TRI_idx_iid_t iid, LogicalCollection* collection,
|
||||||
VPackSlice const& info)
|
VPackSlice const& info)
|
||||||
: MMFilesPathBasedIndex(iid, collection, info, sizeof(TRI_voc_rid_t) + sizeof(uint32_t), false), _uniqueArray(nullptr) {
|
: MMFilesPathBasedIndex(iid, collection, info, sizeof(TRI_voc_rid_t) + sizeof(uint32_t), false), _uniqueArray(nullptr) {
|
||||||
uint32_t indexBuckets = 1;
|
size_t indexBuckets = 1;
|
||||||
|
|
||||||
if (collection != nullptr) {
|
if (collection != nullptr) {
|
||||||
auto physical = static_cast<MMFilesCollection*>(collection->getPhysical());
|
auto physical = static_cast<MMFilesCollection*>(collection->getPhysical());
|
||||||
|
|
|
@ -310,7 +310,7 @@ int RocksDBCollection::restoreIndex(transaction::Methods*,
|
||||||
/// @brief Drop an index with the given iid.
|
/// @brief Drop an index with the given iid.
|
||||||
bool RocksDBCollection::dropIndex(TRI_idx_iid_t iid) {
|
bool RocksDBCollection::dropIndex(TRI_idx_iid_t iid) {
|
||||||
THROW_ARANGO_NOT_YET_IMPLEMENTED();
|
THROW_ARANGO_NOT_YET_IMPLEMENTED();
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<IndexIterator> RocksDBCollection::getAllIterator(
|
std::unique_ptr<IndexIterator> RocksDBCollection::getAllIterator(
|
||||||
|
@ -733,7 +733,7 @@ int RocksDBCollection::saveIndex(transaction::Methods* trx,
|
||||||
// or it's indexes are freed the pointer returned will get invalidated.
|
// or it's indexes are freed the pointer returned will get invalidated.
|
||||||
arangodb::RocksDBPrimaryIndex* RocksDBCollection::primaryIndex() const {
|
arangodb::RocksDBPrimaryIndex* RocksDBCollection::primaryIndex() const {
|
||||||
// The primary index always has iid 0
|
// The primary index always has iid 0
|
||||||
auto primary = _logicalCollection->lookupIndex(0);
|
auto primary = PhysicalCollection::lookupIndex(0);
|
||||||
TRI_ASSERT(primary != nullptr);
|
TRI_ASSERT(primary != nullptr);
|
||||||
|
|
||||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include <rocksdb/status.h>
|
#include <rocksdb/status.h>
|
||||||
|
|
||||||
namespace rocksdb {class DB; class ReadOptions;}
|
namespace rocksdb {class DB; struct ReadOptions;}
|
||||||
|
|
||||||
namespace arangodb {
|
namespace arangodb {
|
||||||
class TransactionState;
|
class TransactionState;
|
||||||
|
|
|
@ -520,7 +520,8 @@ void RocksDBEngine::dropIndexWalMarker(TRI_vocbase_t* vocbase,
|
||||||
|
|
||||||
void RocksDBEngine::unloadCollection(TRI_vocbase_t* vocbase,
|
void RocksDBEngine::unloadCollection(TRI_vocbase_t* vocbase,
|
||||||
arangodb::LogicalCollection* collection) {
|
arangodb::LogicalCollection* collection) {
|
||||||
THROW_ARANGO_NOT_YET_IMPLEMENTED();
|
// TODO: does anything have to happen
|
||||||
|
//THROW_ARANGO_NOT_YET_IMPLEMENTED();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RocksDBEngine::createView(TRI_vocbase_t* vocbase, TRI_voc_cid_t id,
|
void RocksDBEngine::createView(TRI_vocbase_t* vocbase, TRI_voc_cid_t id,
|
||||||
|
|
|
@ -110,7 +110,6 @@ RocksDBAllIndexIterator::RocksDBAllIndexIterator(
|
||||||
: IndexIterator(collection, trx, mmdr, index),
|
: IndexIterator(collection, trx, mmdr, index),
|
||||||
_cmp(index->_cmp),
|
_cmp(index->_cmp),
|
||||||
_reverse(reverse),
|
_reverse(reverse),
|
||||||
_total(0),
|
|
||||||
_bounds(RocksDBKeyBounds::PrimaryIndex(index->objectId())) {
|
_bounds(RocksDBKeyBounds::PrimaryIndex(index->objectId())) {
|
||||||
// aquire rocksdb transaction
|
// aquire rocksdb transaction
|
||||||
RocksDBTransactionState* state = rocksutils::toRocksTransactionState(trx);
|
RocksDBTransactionState* state = rocksutils::toRocksTransactionState(trx);
|
||||||
|
|
|
@ -90,7 +90,6 @@ class RocksDBAllIndexIterator final : public IndexIterator {
|
||||||
|
|
||||||
RocksDBComparator const* _cmp;
|
RocksDBComparator const* _cmp;
|
||||||
bool const _reverse;
|
bool const _reverse;
|
||||||
uint64_t _total;
|
|
||||||
std::unique_ptr<rocksdb::Iterator> _iterator;
|
std::unique_ptr<rocksdb::Iterator> _iterator;
|
||||||
RocksDBKeyBounds _bounds;
|
RocksDBKeyBounds _bounds;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue