Skip to content

Commit

Permalink
Merge pull request #2578 from michael-berlin/buffer_log_fix
Browse files Browse the repository at this point in the history
vtgate/buffer: Fix bug that keyspaces were not logged at startup.
  • Loading branch information
michael-berlin authored Feb 23, 2017
2 parents ceaddb1 + 7c80ce5 commit 11a9804
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/vtgate/buffer/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ func New() *Buffer {
header := "Buffering limited to configured "
limited := ""
if len(keyspaces) > 0 {
limited = "keyspaces: " + setToString(keyspaces)
limited += "keyspaces: " + setToString(keyspaces)
}
if len(shards) > 0 {
if limited == "" {
limited += " and "
}
limited = "shards: " + setToString(shards)
limited += "shards: " + setToString(shards)
}
if limited != "" {
limited = header + limited
Expand Down

0 comments on commit 11a9804

Please sign in to comment.