_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c158000
train
// ExecuteVtworkerCommand is part of the VtworkerClient interface.
{ "resource": "" }
c158001
train
// NewClusterOperationInstance creates a new cluster operation instance with one initial task.
{ "resource": "" }
c158002
train
// InsertTaskContainers inserts "newTaskContainers" at pos in the current list of task containers. Existing task containers will be moved after the new task containers.
{ "resource": "" }
c158003
train
// Init starts logging to the given file path.
{ "resource": "" }
c158004
train
// Aggregate aggregates several errors into a single one. // The resulting error code will be the one with the highest // priority as defined by the priority constants in this package.
{ "resource": "" }
c158005
train
// ConcatenateErrors aggregates an array of errors into a single error by string concatenation.
{ "resource": "" }
c158006
train
// NewTrackedBuffer creates a new TrackedBuffer.
{ "resource": "" }
c158007
train
// WriteNode function, initiates the writing of a single SQLNode tree by passing // through to Myprintf with a default format string
{ "resource": "" }
c158008
train
// ParsedQuery returns a ParsedQuery that contains bind // locations for easy substitution.
{ "resource": "" }
c158009
train
// BuildParsedQuery builds a ParsedQuery from the input.
{ "resource": "" }
c158010
train
// Execute is part of the queryservice.QueryServer interface
{ "resource": "" }
c158011
train
// ExecuteBatch is part of the queryservice.QueryServer interface
{ "resource": "" }
c158012
train
// StreamExecute is part of the queryservice.QueryServer interface
{ "resource": "" }
c158013
train
// Begin is part of the queryservice.QueryServer interface
{ "resource": "" }
c158014
train
// Commit is part of the queryservice.QueryServer interface
{ "resource": "" }
c158015
train
// Rollback is part of the queryservice.QueryServer interface
{ "resource": "" }
c158016
train
// CommitPrepared is part of the queryservice.QueryServer interface
{ "resource": "" }
c158017
train
// CreateTransaction is part of the queryservice.QueryServer interface
{ "resource": "" }
c158018
train
// StartCommit is part of the queryservice.QueryServer interface
{ "resource": "" }
c158019
train
// ConcludeTransaction is part of the queryservice.QueryServer interface
{ "resource": "" }
c158020
train
// ReadTransaction is part of the queryservice.QueryServer interface
{ "resource": "" }
c158021
train
// BeginExecute is part of the queryservice.QueryServer interface
{ "resource": "" }
c158022
train
// BeginExecuteBatch is part of the queryservice.QueryServer interface
{ "resource": "" }
c158023
train
// MessageStream is part of the queryservice.QueryServer interface
{ "resource": "" }
c158024
train
// MessageAck is part of the queryservice.QueryServer interface
{ "resource": "" }
c158025
train
// SplitQuery is part of the queryservice.QueryServer interface
{ "resource": "" }
c158026
train
// StreamHealth is part of the queryservice.QueryServer interface
{ "resource": "" }
c158027
train
// UpdateStream is part of the queryservice.QueryServer interface
{ "resource": "" }
c158028
train
// VStream is part of the queryservice.QueryServer interface
{ "resource": "" }
c158029
train
// VStreamRows is part of the queryservice.QueryServer interface
{ "resource": "" }
c158030
train
// Register registers the implementation on the provide gRPC Server.
{ "resource": "" }
c158031
train
// NewCounter returns a new Counter.
{ "resource": "" }
c158032
train
// Add adds the provided value to the Counter.
{ "resource": "" }
c158033
train
// NewCounterFunc creates a new CounterFunc instance and publishes it if name is // set.
{ "resource": "" }
c158034
train
// NewGauge creates a new Gauge and publishes it if name is set.
{ "resource": "" }
c158035
train
// Set overwrites the current value.
{ "resource": "" }
c158036
train
// Add adds the provided value to the Gauge.
{ "resource": "" }
c158037
train
// NewGaugeFunc creates a new GaugeFunc instance and publishes it if name is // set.
{ "resource": "" }
c158038
train
// RegisterDebugHealthHandler register a debug health http endpoint for a vtcld server
{ "resource": "" }
c158039
train
// LoadTable creates a Table from the schema info in the database.
{ "resource": "" }
c158040
train
// RegisterSource registers a query rule source name with Map.
{ "resource": "" }
c158041
train
// UnRegisterSource removes a registered query rule source name.
{ "resource": "" }
c158042
train
// SetRules takes an external Rules structure and overwrite one of the // internal Rules as designated by ruleSource parameter.
{ "resource": "" }
c158043
train
// Get returns the corresponding Rules as designated by ruleSource parameter.
{ "resource": "" }
c158044
train
// FilterByPlan creates a new Rules by prefiltering on all query rules that are contained in internal // Rules structures, in other words, query rules from all predefined sources will be applied.
{ "resource": "" }
c158045
train
// ConfigureTabletHook configures the right parameters for a hook // running locally on a tablet.
{ "resource": "" }
c158046
train
// ChangeType changes the type of the tablet. Make this external, since these // transitions need to be forced from time to time. // // If successful, the updated tablet record is returned.
{ "resource": "" }
c158047
train
// CheckOwnership returns nil iff the Hostname and port match on oldTablet and // newTablet, which implies that no other tablet process has taken over the // record.
{ "resource": "" }
c158048
train
// TabletIdent returns a concise string representation of this tablet.
{ "resource": "" }
c158049
train
// TargetIdent returns a concise string representation of a query target
{ "resource": "" }
c158050
train
// CreateRecursive is a helper function on top of Create. It will // create a path and any pieces required, think mkdir -p. // Intermediate znodes are always created empty. // Pass maxCreationDepth=-1 to create all nodes to the top.
{ "resource": "" }
c158051
train
// ChildrenRecursive returns the relative path of all the children of // the provided node.
{ "resource": "" }
c158052
train
// DeleteRecursive will delete all children of the given path.
{ "resource": "" }
c158053
train
// obtainQueueLock waits until we hold the lock in the provided path. // The lexically lowest node is the lock holder - verify that this // path holds the lock. Call this queue-lock because the semantics are // a hybrid. Normal Zookeeper locks make assumptions about sequential // numbering that don't hold when the da...
{ "resource": "" }
c158054
train
// NewResultMerger returns a new ResultMerger.
{ "resource": "" }
c158055
train
// CheckValidTypesForResultMerger returns an error if the provided fields are not compatible with how ResultMerger works
{ "resource": "" }
c158056
train
// Next returns the next Result in the sorted, merged stream. // It is part of the ResultReader interface.
{ "resource": "" }
c158057
train
// Close closes all inputs
{ "resource": "" }
c158058
train
// next reads the next row from the input. It returns io.EOF if the input stream // has ended.
{ "resource": "" }
c158059
train
// As with all distributed systems, things can skew. These functions // explore data in topology server and attempt to square that with reality. // // Given the node counts are usually large, this work should be done // with as much parallelism as is viable. // // This may eventually move into a separate package. // wa...
{ "resource": "" }
c158060
train
// Validate all tablets in all discoverable cells, even if they are // not in the replication graph.
{ "resource": "" }
c158061
train
// Validate a whole TopologyServer tree
{ "resource": "" }
c158062
train
// ValidateKeyspace will validate a bunch of information in a keyspace // is correct.
{ "resource": "" }
c158063
train
// ValidateShard will validate a bunch of information in a shard is correct.
{ "resource": "" }
c158064
train
// DatetimeToNative converts a Datetime Value into a time.Time
{ "resource": "" }
c158065
train
// NewDatetime builds a Datetime Value
{ "resource": "" }
c158066
train
// MysqlCallInfo returns an augmented context with a CallInfo structure, // only for Mysql contexts.
{ "resource": "" }
c158067
train
// NewBlockWorker returns a new BlockWorker object.
{ "resource": "" }
c158068
train
// StatusAsHTML implements the Worker interface.
{ "resource": "" }
c158069
train
// NewDBConn creates a new DBConn. It triggers a CheckMySQL if creation fails.
{ "resource": "" }
c158070
train
// NewDBConnNoPool creates a new DBConn without a pool.
{ "resource": "" }
c158071
train
// Exec executes the specified query. If there is a connection error, it will reconnect // and retry. A failed reconnect will trigger a CheckMySQL.
{ "resource": "" }
c158072
train
// ExecOnce executes the specified query, but does not retry on connection errors.
{ "resource": "" }
c158073
train
// Stream executes the query and streams the results.
{ "resource": "" }
c158074
train
// Recycle returns the DBConn to the pool.
{ "resource": "" }
c158075
train
// Kill kills the currently executing query both on MySQL side // and on the connection side. If no query is executing, it's a no-op. // Kill will also not kill a query more than once.
{ "resource": "" }
c158076
train
// setDeadline starts a goroutine that will kill the currently executing query // if the deadline is exceeded. It returns a channel and a waitgroup. After the // query is done executing, the caller is required to close the done channel // and wait for the waitgroup to make sure that the necessary cleanup is done.
{ "resource": "" }
c158077
train
// SaveVSchema first validates the VSchema, then saves it. // If the VSchema is empty, just remove it.
{ "resource": "" }
c158078
train
// GetVSchema fetches the vschema from the topo.
{ "resource": "" }
c158079
train
// SaveRoutingRules saves the routing rules into the topo.
{ "resource": "" }
c158080
train
// GetRoutingRules fetches the routing rules from the topo.
{ "resource": "" }
c158081
train
// Helper functions for "Task" protobuf message. // MarkTaskSucceeded marks the task as done.
{ "resource": "" }
c158082
train
// MarkTaskFailed marks the task as failed.
{ "resource": "" }
c158083
train
// NewTask creates a new task protobuf message for "taskName" with "parameters".
{ "resource": "" }
c158084
train
// ReadMycnf will read an existing my.cnf from disk, and update the passed in Mycnf object // with values from the my.cnf on disk.
{ "resource": "" }
c158085
train
// buildResult builds a new result by pulling the necessary columns from // the subquery in the requested order.
{ "resource": "" }
c158086
train
// Record will add a cleaning action to the list
{ "resource": "" }
c158087
train
// RecordChangeSlaveTypeAction records a new ChangeSlaveTypeAction // into the specified Cleaner
{ "resource": "" }
c158088
train
// RecordStartSlaveAction records a new action to restart binlog replication on a server // into the specified Cleaner
{ "resource": "" }
c158089
train
// RecordVReplicationAction records an action to restart binlog replication on a server // into the specified Cleaner
{ "resource": "" }
c158090
train
// NewKeyspaceFilteringServer constructs a new server based on the provided // implementation that prevents the specified keyspaces from being exposed // to consumers of the new Server. // // A filtering server will not allow access to the topo.Server to prevent // updates that may corrupt the global VSchema keyspace.
{ "resource": "" }
c158091
train
// keyspacesWithServedFrom returns all the keyspaces that have ServedFrom set // to one value.
{ "resource": "" }
c158092
train
// newOrcClient creates a client for the Orchestrator HTTP API. // It should only be called after flags have been parsed.
{ "resource": "" }
c158093
train
// Discover executes a single attempt to self-register with Orchestrator.
{ "resource": "" }
c158094
train
// NewRowAggregator returns a RowAggregator. // The index of the elements in statCounters must match the elements // in "DiffTypes" i.e. the first counter is for inserts, second for updates // and the third for deletes.
{ "resource": "" }
c158095
train
// Add will add a new row which must be reconciled. // If an error is returned, RowAggregator will be in an undefined state and must // not be used any longer.
{ "resource": "" }
c158096
train
// Flush sends out the current aggregation buffer.
{ "resource": "" }
c158097
train
// WriteHead implements the QueryBuilder interface.
{ "resource": "" }
c158098
train
// WriteTail implements the QueryBuilder interface.
{ "resource": "" }
c158099
train
// WriteSeparator implements the QueryBuilder interface.
{ "resource": "" }