mirror of https://gitee.com/bigwinds/arangodb
Disable hotbackup api on Windows. (#10131)
This commit is contained in:
parent
845701de6d
commit
b3a1b028d8
|
@ -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
|
||||
|
||||
|
||||
// ...........................................................................
|
||||
|
|
Loading…
Reference in New Issue