Fixed some Typos

pull/2918/head
Pradeep Chhetri 2015-06-11 17:33:26 +05:45
parent 256c099444
commit 37750acef6
3 changed files with 6 additions and 5 deletions

View File

@ -1360,7 +1360,7 @@ func MatchSource(sources Sources, name string) string {
return ""
}
// Target represents a target (destination) policy, measurment, and DB.
// Target represents a target (destination) policy, measurement, and DB.
type Target struct {
// Measurement to write into.
Measurement *Measurement
@ -1625,7 +1625,7 @@ func (s *ShowMeasurementsStatement) RequiredPrivileges() ExecutionPrivileges {
return ExecutionPrivileges{{Name: "", Privilege: ReadPrivilege}}
}
// DropMeasurmentStatement represents a command to drop a measurement.
// DropMeasurementStatement represents a command to drop a measurement.
type DropMeasurementStatement struct {
// Name of the measurement to be dropped.
Name string

View File

@ -46,7 +46,7 @@ func (d *DatabaseIndex) Measurement(name string) *Measurement {
return d.measurements[name]
}
// MeasurementSeriesCounts returns the number of measurments and series currently indexed by the database.
// MeasurementSeriesCounts returns the number of measurements and series currently indexed by the database.
// Useful for reporting and monitoring.
func (d *DatabaseIndex) MeasurementSeriesCounts() (nMeasurements int, nSeries int) {
d.mu.RLock()
@ -78,7 +78,7 @@ func (s *DatabaseIndex) createSeriesIndexIfNotExists(measurementName string, ser
return series
}
// addMeasurementToIndexIfNotExists creates or retrieves an in memory index object for the measurement
// createMeasurementIndexIfNotExists creates or retrieves an in memory index object for the measurement
func (s *DatabaseIndex) createMeasurementIndexIfNotExists(name string) *Measurement {
m := s.measurements[name]
if m == nil {
@ -147,6 +147,7 @@ func (db *DatabaseIndex) measurementsByExpr(expr influxql.Expr) (Measurements, e
return nil, fmt.Errorf("%#v", expr)
}
// measurementsByTagFilters returns the measurements matching the filters on tag values.
func (db *DatabaseIndex) measurementsByTagFilters(filters []*TagFilter) Measurements {
// If no filters, then return all measurements.
if len(filters) == 0 {

View File

@ -355,7 +355,7 @@ func (q *QueryExecutor) expandSources(sources influxql.Sources) (influxql.Source
// Get measurements from the database that match the regex.
measurements := db.measurementsByRegex(src.Regex.Val)
// Add those measurments to the set.
// Add those measurements to the set.
for _, m := range measurements {
m2 := &influxql.Measurement{
Database: src.Database,