mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-21 14:02:59 +08:00
change storage_migration_mode to storage_migration_type
This commit is contained in:
parent
f2b59af9b0
commit
59ac1dffb4
@ -176,7 +176,7 @@ ACTOR Future<bool> configureCommandActor(Reference<IDatabase> db,
|
|||||||
case ConfigurationResult::STORAGE_MIGRATION_DISABLED:
|
case ConfigurationResult::STORAGE_MIGRATION_DISABLED:
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"ERROR: Storage engine type cannot be changed because "
|
"ERROR: Storage engine type cannot be changed because "
|
||||||
"storage_migration_mode=disabled.\n");
|
"storage_migration_type=disabled.\n");
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"Type `configure perpetual_storage_wiggle=1 storage_migration_type=gradual' to enable gradual "
|
"Type `configure perpetual_storage_wiggle=1 storage_migration_type=gradual' to enable gradual "
|
||||||
"migration with the perpetual wiggle, or `configure "
|
"migration with the perpetual wiggle, or `configure "
|
||||||
|
@ -169,7 +169,7 @@ std::map<std::string, std::string> configForToken(std::string const& mode) {
|
|||||||
} else if (value == "gradual") {
|
} else if (value == "gradual") {
|
||||||
type = StorageMigrationType::GRADUAL;
|
type = StorageMigrationType::GRADUAL;
|
||||||
} else {
|
} else {
|
||||||
printf("Error: Only disabled|aggressive|gradual are valid for storage_migration_mode.\n");
|
printf("Error: Only disabled|aggressive|gradual are valid for storage_migration_type.\n");
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
out[p + key] = format("%d", type);
|
out[p + key] = format("%d", type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user