mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 01:42:37 +08:00
Fix issues with command completion for exclude and storage_migration_type. Add missing documentation for tenant_mode in one spot.
This commit is contained in:
parent
61474d5d54
commit
23fcd8c076
@ -64,7 +64,7 @@ The ``commit`` command commits the current transaction. Any sets or clears execu
|
||||
configure
|
||||
---------
|
||||
|
||||
The ``configure`` command changes the database configuration. Its syntax is ``configure [new|tss] [single|double|triple|three_data_hall|three_datacenter] [ssd|memory] [grv_proxies=<N>] [commit_proxies=<N>] [resolvers=<N>] [logs=<N>] [count=<TSS_COUNT>] [perpetual_storage_wiggle=<WIGGLE_SPEED>] [perpetual_storage_wiggle_locality=<<LOCALITY_KEY>:<LOCALITY_VALUE>|0>] [storage_migration_type={disabled|aggressive|gradual}]``.
|
||||
The ``configure`` command changes the database configuration. Its syntax is ``configure [new|tss] [single|double|triple|three_data_hall|three_datacenter] [ssd|memory] [grv_proxies=<N>] [commit_proxies=<N>] [resolvers=<N>] [logs=<N>] [count=<TSS_COUNT>] [perpetual_storage_wiggle=<WIGGLE_SPEED>] [perpetual_storage_wiggle_locality=<<LOCALITY_KEY>:<LOCALITY_VALUE>|0>] [storage_migration_type={disabled|aggressive|gradual}] [tenant_mode={disabled|optional_experimental|required_experimental}]``.
|
||||
|
||||
The ``new`` option, if present, initializes a new database with the given configuration rather than changing the configuration of an existing one. When ``new`` is used, both a redundancy mode and a storage engine must be specified.
|
||||
|
||||
|
@ -354,10 +354,13 @@ static std::vector<std::vector<StringRef>> parseLine(std::string& line, bool& er
|
||||
forcetoken = true;
|
||||
break;
|
||||
case ' ':
|
||||
case '\n':
|
||||
case '\t':
|
||||
case '\r':
|
||||
if (!quoted) {
|
||||
if (i > offset || (forcetoken && i == offset))
|
||||
buf.push_back(StringRef((uint8_t*)(line.data() + offset), i - offset));
|
||||
offset = i = line.find_first_not_of(' ', i);
|
||||
offset = i = line.find_first_not_of(" \n\t\r", i);
|
||||
forcetoken = false;
|
||||
} else
|
||||
i++;
|
||||
@ -788,7 +791,7 @@ void configureGenerator(const char* text, const char* line, std::vector<std::str
|
||||
"resolvers=",
|
||||
"perpetual_storage_wiggle=",
|
||||
"perpetual_storage_wiggle_locality=",
|
||||
"storage_migration_type="
|
||||
"storage_migration_type=",
|
||||
"tenant_mode=",
|
||||
"blob_granules_enabled=",
|
||||
nullptr };
|
||||
|
Loading…
x
Reference in New Issue
Block a user