1
0
Fork 0

Disable hotbackup api on Windows. (#10131)

This commit is contained in:
Max Neunhöffer 2019-10-01 22:47:19 +02:00 committed by KVS85
parent 845701de6d
commit b3a1b028d8
1 changed files with 4 additions and 0 deletions

View File

@ -318,11 +318,13 @@ void GeneralServerFeature::defineHandlers() {
TRI_ASSERT(authentication != nullptr);
#ifdef USE_ENTERPRISE
#ifndef _WIN32
HotBackupFeature* backup =
application_features::ApplicationServer::getFeature<HotBackupFeature>(
"HotBackup");
TRI_ASSERT(backup != nullptr);
#endif
#endif
auto queryRegistry = QueryRegistryFeature::registry();
@ -563,11 +565,13 @@ void GeneralServerFeature::defineHandlers() {
}
#ifdef USE_ENTERPRISE
#ifndef _WIN32
if (backup->isAPIEnabled()) {
_handlerFactory->addPrefixHandler("/_admin/backup",
RestHandlerCreator<arangodb::RestHotBackupHandler>::createNoData);
}
#endif
#endif
// ...........................................................................