ddl: Address comment.

This commit is contained in:
siddontang
2015-10-27 10:23:24 +08:00
parent d0c80f6a0d
commit 9c14e94885
2 changed files with 9 additions and 4 deletions

View File

@ -65,10 +65,14 @@ type ddl struct {
store kv.Storage
meta *meta.Meta
// schema lease seconds.
lease int
uuid string
jobCh chan struct{}
jobDoneCh chan struct{}
lease int
uuid string
jobCh chan struct{}
jobDoneCh chan struct{}
// reOrgDoneCh is for re-orgnization, if the re-orgnization job is done,
// we will use this channel to notify outer.
// TODO: now we use goroutine to simulate re-orgnization jobs, later we may
// use a persistent job list.
reOrgDoneCh chan error
}

View File

@ -24,6 +24,7 @@ import (
var _ context.Context = &reOrgContext{}
// reOrgContext implements context.Context interface for re-orgnization use.
type reOrgContext struct {
store kv.Storage