mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types
This commit is contained in:
commit
a495dc9835
|
@ -25,6 +25,7 @@ core.*
|
|||
*.lnk
|
||||
Thumbs.db
|
||||
|
||||
enterprise
|
||||
compile_commands.json
|
||||
instanceinfo.json
|
||||
testresult.json
|
||||
|
|
|
@ -49,6 +49,15 @@ if (USE_DEV_TIMERS)
|
|||
add_definitions("-DUSE_DEV_TIMERS=1")
|
||||
endif ()
|
||||
|
||||
# enable enterprise features
|
||||
set(ENTERPRISE_INCLUDE_DIR "enterprise")
|
||||
option(USE_ENTERPRISE OFF)
|
||||
|
||||
if (USE_ENTERPRISE)
|
||||
add_definitions("-DUSE_ENTERPRISE=1")
|
||||
include_directories(${ENTERPRISE_INCLUDE_DIR})
|
||||
endif ()
|
||||
|
||||
################################################################################
|
||||
## ARANGODB
|
||||
################################################################################
|
||||
|
|
|
@ -35,6 +35,10 @@
|
|||
#include "RestServer/DatabaseFeature.h"
|
||||
#include "V8Server/V8DealerFeature.h"
|
||||
|
||||
#ifdef USE_ENTERPRISE
|
||||
#include "Enterprise/Version.h"
|
||||
#endif
|
||||
|
||||
using namespace arangodb;
|
||||
using namespace arangodb::application_features;
|
||||
using namespace arangodb::options;
|
||||
|
@ -155,11 +159,17 @@ void BootstrapFeature::start() {
|
|||
|
||||
// Start service properly:
|
||||
rest::RestHandlerFactory::setMaintenance(false);
|
||||
|
||||
#ifdef USE_ENTERPRISE
|
||||
LOG(INFO) << "ArangoDB (enterprise version " << ARANGODB_VERSION_FULL
|
||||
<< " / " << ENTERPRISE_VERSION << ") is ready for business. Have fun!";
|
||||
#else
|
||||
LOG(INFO) << "ArangoDB (version " << ARANGODB_VERSION_FULL
|
||||
<< ") is ready for business. Have fun!";
|
||||
#endif
|
||||
|
||||
if (_bark) {
|
||||
LOG(INFO) << "der Hund so: wau wau!";
|
||||
LOG(INFO) << "The dog says: wau wau!";
|
||||
}
|
||||
|
||||
_isReady = true;
|
||||
|
|
|
@ -44,6 +44,10 @@
|
|||
#include <rocksdb/version.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_ENTERPRISE
|
||||
#include "Enterprise/Version.h"
|
||||
#endif
|
||||
|
||||
using namespace arangodb::rest;
|
||||
|
||||
std::map<std::string, std::string> Version::Values;
|
||||
|
@ -96,9 +100,6 @@ void Version::initialize() {
|
|||
Values["asm-crc32"] = (ENABLE_ASM_CRC32) ? "true" : "false";
|
||||
Values["boost-version"] = getBoostVersion();
|
||||
Values["build-date"] = getBuildDate();
|
||||
#if HAVE_ARANGODB_BUILD_REPOSITORY
|
||||
Values["build-repository"] = getBuildRepository();
|
||||
#endif
|
||||
Values["compiler"] = getCompiler();
|
||||
Values["endianness"] = getEndianness();
|
||||
Values["fd-setsize"] = arangodb::basics::StringUtils::itoa(FD_SETSIZE);
|
||||
|
@ -113,6 +114,14 @@ void Version::initialize() {
|
|||
Values["zlib-version"] = getZLibVersion();
|
||||
|
||||
|
||||
#if USE_ENTERPRISE
|
||||
Values["enterprise-version"] = ENTERPRISE_VERSION;
|
||||
#endif
|
||||
|
||||
#if HAVE_ARANGODB_BUILD_REPOSITORY
|
||||
Values["build-repository"] = getBuildRepository();
|
||||
#endif
|
||||
|
||||
#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
|
||||
Values["assertions"] = "true";
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue