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),
|
||||
_cache(nullptr),
|
||||
_cachePresent(false),
|
||||
_useCache(true) {
|
||||
_useCache(false) {
|
||||
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
||||
_logicalCollection->cid());
|
||||
if (_useCache) {
|
||||
|
@ -104,7 +104,7 @@ RocksDBCollection::RocksDBCollection(LogicalCollection* collection,
|
|||
_hasGeoIndex(false),
|
||||
_cache(nullptr),
|
||||
_cachePresent(false),
|
||||
_useCache(true) {
|
||||
_useCache(false) {
|
||||
addCollectionMapping(_objectId, _logicalCollection->vocbase()->id(),
|
||||
_logicalCollection->cid());
|
||||
if (_useCache) {
|
||||
|
|
|
@ -299,7 +299,8 @@ RocksDBPrimaryIndex::RocksDBPrimaryIndex(
|
|||
StaticStrings::KeyString, false)}}),
|
||||
true, false,
|
||||
basics::VelocyPackHelper::stringUInt64(info, "objectId"),
|
||||
!ServerState::instance()->isCoordinator() /*useCache*/) {
|
||||
false) {
|
||||
// !ServerState::instance()->isCoordinator() /*useCache*/) {
|
||||
TRI_ASSERT(_objectId != 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,13 +32,13 @@ describe('Foxx Manager', function () {
|
|||
|
||||
json.dependencies = deps1;
|
||||
fs.writeFileSync(filename, JSON.stringify(json));
|
||||
FoxxManager.loadServiceFromDisk(mount);
|
||||
FoxxManager.reloadInstalledService(mount);
|
||||
service = FoxxManager.lookupService(mount);
|
||||
expect(service.manifest.dependencies).to.eql(deps1);
|
||||
|
||||
json.dependencies = deps2;
|
||||
fs.writeFileSync(filename, JSON.stringify(json));
|
||||
FoxxManager.loadServiceFromDisk(mount);
|
||||
FoxxManager.reloadInstalledService(mount);
|
||||
service = FoxxManager.lookupService(mount);
|
||||
expect(service.manifest.dependencies).to.eql(deps2);
|
||||
});
|
||||
|
|
|
@ -263,17 +263,19 @@ function createService () {
|
|||
return new Service({
|
||||
path: '/tmp/$dummy$',
|
||||
mount: '/__dummy__',
|
||||
manifest: {
|
||||
name: 'DUMMY APP',
|
||||
version: '1.0.0',
|
||||
license: 'The Unlicense',
|
||||
description: 'Dummy app for Foxx.',
|
||||
main: '$dummy$',
|
||||
engines: {
|
||||
arangodb: '^3.0.0'
|
||||
}
|
||||
},
|
||||
options: {}
|
||||
options: {
|
||||
configuration: {},
|
||||
dependencies: {}
|
||||
}
|
||||
}, {
|
||||
name: 'DUMMY APP',
|
||||
version: '1.0.0',
|
||||
license: 'The Unlicense',
|
||||
description: 'Dummy app for Foxx.',
|
||||
main: '$dummy$',
|
||||
engines: {
|
||||
arangodb: '^3.0.0'
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue