Skip to content

Commit

Permalink
fix comments mistake in model (pingcap#3183)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyuanw authored and ngaut committed Apr 29, 2017
1 parent 892e3a8 commit c321456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions model/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,18 @@ type Job struct {
TableID int64 `json:"table_id"`
State JobState `json:"state"`
Error *terror.Error `json:"err"`
// Every time we meet an error when running job, we will increase it.
// ErrorCount will be increased, every time we meet an error when running job.
ErrorCount int64 `json:"err_count"`
// The number of rows that are processed.
// RowCount means the number of rows that are processed.
RowCount int64 `json:"row_count"`
Mu sync.Mutex `json:"-"`
Args []interface{} `json:"-"`
// We must use json raw message to delay parsing special args.
// RawArgs : We must use json raw message to delay parsing special args.
RawArgs json.RawMessage `json:"raw_args"`
SchemaState SchemaState `json:"schema_state"`
// Snapshot version for this job.
// SnapshotVer means snapshot version for this job.
SnapshotVer uint64 `json:"snapshot_ver"`
// unix nano seconds
// LastUpdateTS now uses unix nano seconds
// TODO: Use timestamp allocated by TSO.
LastUpdateTS int64 `json:"last_update_ts"`
// Query string of the ddl job.
Expand Down Expand Up @@ -233,7 +233,7 @@ func (s JobState) String() string {
// Owner is for DDL Owner.
type Owner struct {
OwnerID string `json:"owner_id"`
// unix nano seconds
// LastUpdateTS now uses unix nano seconds
// TODO: Use timestamp allocated by TSO.
LastUpdateTS int64 `json:"last_update_ts"`
}
Expand Down
1 change: 1 addition & 0 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type TableInfo struct {
AutoIncID int64 `json:"auto_inc_id"`
MaxColumnID int64 `json:"max_col_id"`
MaxIndexID int64 `json:"max_idx_id"`
// OldSchemaID :
// Because auto increment ID has schemaID as prefix,
// We need to save original schemaID to keep autoID unchanged
// while renaming a table from one database to another.
Expand Down

0 comments on commit c321456

Please sign in to comment.