fix leader annotation (#13786)
Signed-off-by: acpana <8968914+acpana@users.noreply.github.com>
This commit is contained in:
parent
4ff097c4cf
commit
84b458149f
|
@ -109,7 +109,7 @@ func processFile(path string) error {
|
|||
log.Printf(" ReadTODO from %s", ann.ReadTODO)
|
||||
}
|
||||
if ann.LeaderReadTODO != "" {
|
||||
log.Printf(" LeaderReadTODO from %s", ann.ReadTODO)
|
||||
log.Printf(" LeaderReadTODO from %s", ann.LeaderReadTODO)
|
||||
}
|
||||
if ann.WriteTODO != "" {
|
||||
log.Printf(" WriteTODO from %s", ann.WriteTODO)
|
||||
|
@ -161,7 +161,7 @@ var _ time.Month
|
|||
buf.WriteString(fmt.Sprintf(tmplDatacenter, typ.Name, typ.Annotation.Datacenter))
|
||||
}
|
||||
if typ.Annotation.LeaderReadTODO != "" {
|
||||
buf.WriteString(fmt.Sprintf(tmplLeaderOnlyReadTODO, typ.Name, typ.Annotation.ReadTODO))
|
||||
buf.WriteString(fmt.Sprintf(tmplLeaderOnlyReadTODO, typ.Name, typ.Annotation.LeaderReadTODO))
|
||||
}
|
||||
if typ.Annotation.ReadTODO != "" {
|
||||
buf.WriteString(fmt.Sprintf(tmplReadTODO, typ.Name, typ.Annotation.ReadTODO))
|
||||
|
|
Loading…
Reference in New Issue