mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
We had two different, incompatible-with-each-other, and both individually broken, partial implementations of resizing logic. There's the original pre-etcd resize, and then the etcd resize, and neither works, but there's conflicts between the ways they don't work. No attempt to fix this is likely to yield decent results, so instead, we yank them both out entirely, so if we decide to implement resizing (which we will) we won't be confused by stray code pertaining to resizing that's not really hooked up to anything. We're leaving the resize messages in protobuf to avoid renumbering protobuf messages. We rename some of our message types to UNUSED0, etcetera, so that any code still using the old names won't compile, to make sure we get rid of it, but we can't just drop the numbers without breaking rolling restart. The Resize_AddNode tests are removed not just because we don't have resizing, but because they were completely broken anyway and never worked at all. But there's no reason to fix them because they exist to fix the functionality we didn't have and are now removing the vestigial remains of. We also drop the one usage of the AddNode function of Noder, because it was used only by one test code fragment that was creatincg clusters, and that can be done more correctly. There were no other call sites at all. We mark the monitorAntiEntropy function to be ignored by code coverage because it's not actually being covered. There's a separate ticket for removing that entirely.
59 lines
2.2 KiB
Go
59 lines
2.2 KiB
Go
// Code generated by "stringer -type=apiMethod"; DO NOT EDIT.
|
|
|
|
package pilosa
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[apiClusterMessage-0]
|
|
_ = x[apiCreateField-1]
|
|
_ = x[apiCreateIndex-2]
|
|
_ = x[apiDeleteField-3]
|
|
_ = x[apiDeleteAvailableShard-4]
|
|
_ = x[apiDeleteIndex-5]
|
|
_ = x[apiDeleteView-6]
|
|
_ = x[apiExportCSV-7]
|
|
_ = x[apiFragmentBlockData-8]
|
|
_ = x[apiFragmentBlocks-9]
|
|
_ = x[apiFragmentData-10]
|
|
_ = x[apiTranslateData-11]
|
|
_ = x[apiFieldTranslateData-12]
|
|
_ = x[apiField-13]
|
|
_ = x[apiImport-14]
|
|
_ = x[apiImportValue-15]
|
|
_ = x[apiIndex-16]
|
|
_ = x[apiQuery-17]
|
|
_ = x[apiRecalculateCaches-18]
|
|
_ = x[apiSchema-19]
|
|
_ = x[apiShardNodes-20]
|
|
_ = x[apiState-21]
|
|
_ = x[apiViews-22]
|
|
_ = x[apiApplySchema-23]
|
|
_ = x[apiStartTransaction-24]
|
|
_ = x[apiFinishTransaction-25]
|
|
_ = x[apiTransactions-26]
|
|
_ = x[apiGetTransaction-27]
|
|
_ = x[apiActiveQueries-28]
|
|
_ = x[apiPastQueries-29]
|
|
_ = x[apiIDReserve-30]
|
|
_ = x[apiIDCommit-31]
|
|
_ = x[apiIDReset-32]
|
|
_ = x[apiPartitionNodes-33]
|
|
_ = x[apiIngestOperations-34]
|
|
_ = x[apiIngestNodeOperations-35]
|
|
_ = x[apiMutexCheck-36]
|
|
}
|
|
|
|
const _apiMethod_name = "apiClusterMessageapiCreateFieldapiCreateIndexapiDeleteFieldapiDeleteAvailableShardapiDeleteIndexapiDeleteViewapiExportCSVapiFragmentBlockDataapiFragmentBlocksapiFragmentDataapiTranslateDataapiFieldTranslateDataapiFieldapiImportapiImportValueapiIndexapiQueryapiRecalculateCachesapiSchemaapiShardNodesapiStateapiViewsapiApplySchemaapiStartTransactionapiFinishTransactionapiTransactionsapiGetTransactionapiActiveQueriesapiPastQueriesapiIDReserveapiIDCommitapiIDResetapiPartitionNodesapiIngestOperationsapiIngestNodeOperationsapiMutexCheck"
|
|
|
|
var _apiMethod_index = [...]uint16{0, 17, 31, 45, 59, 82, 96, 109, 121, 141, 158, 173, 189, 210, 218, 227, 241, 249, 257, 277, 286, 299, 307, 315, 329, 348, 368, 383, 400, 416, 430, 442, 453, 463, 480, 499, 522, 535}
|
|
|
|
func (i apiMethod) String() string {
|
|
if i < 0 || i >= apiMethod(len(_apiMethod_index)-1) {
|
|
return "apiMethod(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _apiMethod_name[_apiMethod_index[i]:_apiMethod_index[i+1]]
|
|
}
|