mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:arangodb/arangodb into devel
This commit is contained in:
commit
83dff84be7
|
@ -86,7 +86,7 @@ RocksDBCollection::RocksDBCollection(LogicalCollection* collection,
|
||||||
_hasGeoIndex(false),
|
_hasGeoIndex(false),
|
||||||
_cache(nullptr),
|
_cache(nullptr),
|
||||||
_cachePresent(false),
|
_cachePresent(false),
|
||||||
_useCache(true) {
|
_useCache(false) {
|
||||||
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
||||||
_logicalCollection->cid());
|
_logicalCollection->cid());
|
||||||
if (_useCache) {
|
if (_useCache) {
|
||||||
|
@ -104,7 +104,7 @@ RocksDBCollection::RocksDBCollection(LogicalCollection* collection,
|
||||||
_hasGeoIndex(false),
|
_hasGeoIndex(false),
|
||||||
_cache(nullptr),
|
_cache(nullptr),
|
||||||
_cachePresent(false),
|
_cachePresent(false),
|
||||||
_useCache(true) {
|
_useCache(false) {
|
||||||
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
||||||
_logicalCollection->cid());
|
_logicalCollection->cid());
|
||||||
if (_useCache) {
|
if (_useCache) {
|
||||||
|
|
|
@ -299,7 +299,8 @@ RocksDBPrimaryIndex::RocksDBPrimaryIndex(
|
||||||
StaticStrings::KeyString, false)}}),
|
StaticStrings::KeyString, false)}}),
|
||||||
true, false,
|
true, false,
|
||||||
basics::VelocyPackHelper::stringUInt64(info, "objectId"),
|
basics::VelocyPackHelper::stringUInt64(info, "objectId"),
|
||||||
!ServerState::instance()->isCoordinator() /*useCache*/) {
|
false) {
|
||||||
|
// !ServerState::instance()->isCoordinator() /*useCache*/) {
|
||||||
TRI_ASSERT(_objectId != 0);
|
TRI_ASSERT(_objectId != 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,13 +32,13 @@ describe('Foxx Manager', function () {
|
||||||
|
|
||||||
json.dependencies = deps1;
|
json.dependencies = deps1;
|
||||||
fs.writeFileSync(filename, JSON.stringify(json));
|
fs.writeFileSync(filename, JSON.stringify(json));
|
||||||
FoxxManager.loadServiceFromDisk(mount);
|
FoxxManager.reloadInstalledService(mount);
|
||||||
service = FoxxManager.lookupService(mount);
|
service = FoxxManager.lookupService(mount);
|
||||||
expect(service.manifest.dependencies).to.eql(deps1);
|
expect(service.manifest.dependencies).to.eql(deps1);
|
||||||
|
|
||||||
json.dependencies = deps2;
|
json.dependencies = deps2;
|
||||||
fs.writeFileSync(filename, JSON.stringify(json));
|
fs.writeFileSync(filename, JSON.stringify(json));
|
||||||
FoxxManager.loadServiceFromDisk(mount);
|
FoxxManager.reloadInstalledService(mount);
|
||||||
service = FoxxManager.lookupService(mount);
|
service = FoxxManager.lookupService(mount);
|
||||||
expect(service.manifest.dependencies).to.eql(deps2);
|
expect(service.manifest.dependencies).to.eql(deps2);
|
||||||
});
|
});
|
||||||
|
|
|
@ -263,7 +263,11 @@ function createService () {
|
||||||
return new Service({
|
return new Service({
|
||||||
path: '/tmp/$dummy$',
|
path: '/tmp/$dummy$',
|
||||||
mount: '/__dummy__',
|
mount: '/__dummy__',
|
||||||
manifest: {
|
options: {
|
||||||
|
configuration: {},
|
||||||
|
dependencies: {}
|
||||||
|
}
|
||||||
|
}, {
|
||||||
name: 'DUMMY APP',
|
name: 'DUMMY APP',
|
||||||
version: '1.0.0',
|
version: '1.0.0',
|
||||||
license: 'The Unlicense',
|
license: 'The Unlicense',
|
||||||
|
@ -272,8 +276,6 @@ function createService () {
|
||||||
engines: {
|
engines: {
|
||||||
arangodb: '^3.0.0'
|
arangodb: '^3.0.0'
|
||||||
}
|
}
|
||||||
},
|
|
||||||
options: {}
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue