mirror of https://gitee.com/bigwinds/arangodb
Feature 3.3/forward compatible sync (#6001)
This commit is contained in:
parent
92a0c395de
commit
ccc339ca46
|
@ -398,7 +398,7 @@ std::shared_ptr<Index> MMFilesIndexFactory::prepareIndexFromSlice(
|
|||
}
|
||||
return std::make_shared<MMFilesEdgeIndex>(iid, col);
|
||||
}
|
||||
if (typeString == "geo1" || typeString == "geo2") {
|
||||
if (typeString == "geo1" || typeString == "geo2" || typeString == "geo") {
|
||||
return std::make_shared<MMFilesGeoIndex>(iid, col, info);
|
||||
}
|
||||
if (typeString == "hash") {
|
||||
|
|
|
@ -719,18 +719,22 @@ Result TailingSyncer::applyLogMarker(VPackSlice const& slice,
|
|||
}
|
||||
|
||||
else if (type == REPLICATION_VIEW_CREATE) {
|
||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_NOT_IMPLEMENTED,
|
||||
"view create not yet implemented");
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) << "views not supported in 3.3";
|
||||
return Result();
|
||||
}
|
||||
|
||||
else if (type == REPLICATION_VIEW_DROP) {
|
||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_NOT_IMPLEMENTED,
|
||||
"view drop not yet implemented");
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) << "views not supported in 3.3";
|
||||
return Result();
|
||||
}
|
||||
|
||||
else if (type == REPLICATION_VIEW_CHANGE) {
|
||||
THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_NOT_IMPLEMENTED,
|
||||
"view change not yet implemented");
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) << "views not supported in 3.3";
|
||||
return Result();
|
||||
}
|
||||
else if (type == REPLICATION_VIEW_RENAME) {
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) << "views not supported in 3.3";
|
||||
return Result();
|
||||
}
|
||||
|
||||
else if (type == REPLICATION_DATABASE_CREATE ||
|
||||
|
|
|
@ -352,6 +352,16 @@ RestStatus RestReplicationHandler::execute() {
|
|||
goto BAD_CALL;
|
||||
}
|
||||
handleCommandRestoreData();
|
||||
} else if (command == "restore-view") {
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) << "views not supported in 3.3";
|
||||
if (type != rest::RequestType::PUT) {
|
||||
goto BAD_CALL;
|
||||
}
|
||||
VPackBuilder result;
|
||||
result.openObject();
|
||||
result.close();
|
||||
generateResult(rest::ResponseCode::OK, result.slice());
|
||||
return RestStatus::DONE;
|
||||
} else if (command == "sync") {
|
||||
if (type != rest::RequestType::PUT) {
|
||||
goto BAD_CALL;
|
||||
|
|
|
@ -397,7 +397,7 @@ std::shared_ptr<Index> RocksDBIndexFactory::prepareIndexFromSlice(
|
|||
if (typeString == "persistent") {
|
||||
return std::make_shared<RocksDBPersistentIndex>(iid, col, info);
|
||||
}
|
||||
if (typeString == "geo1" || typeString == "geo2") {
|
||||
if (typeString == "geo1" || typeString == "geo2" || typeString == "geo") {
|
||||
return std::make_shared<RocksDBGeoIndex>(iid, col, info);
|
||||
}
|
||||
if (typeString == "fulltext") {
|
||||
|
|
|
@ -83,6 +83,14 @@ KeyGenerator::GeneratorType KeyGenerator::generatorType(
|
|||
if (typeName == AutoIncrementKeyGenerator::name()) {
|
||||
return KeyGenerator::TYPE_AUTOINCREMENT;
|
||||
}
|
||||
if ((typeName == "uuid") || (typeName == "padded")) {
|
||||
LOG_TOPIC(WARN, Logger::REPLICATION) <<
|
||||
"key generator '" <<
|
||||
typeName <<
|
||||
"' not supported in 3.3 - falling back to " <<
|
||||
TraditionalKeyGenerator::name();
|
||||
return KeyGenerator::TYPE_TRADITIONAL;
|
||||
}
|
||||
|
||||
// error
|
||||
return KeyGenerator::TYPE_UNKNOWN;
|
||||
|
|
Loading…
Reference in New Issue