Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the bug that operation_name table can not be init more than once #1961

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugin/storage/cassandra/spanstore/operation_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (t *tableMeta) materialize() {
t.queryStmt = fmt.Sprintf(t.queryStmt, t.tableName)
}

var schemas = map[schemaVersion]*tableMeta{
var schemas = map[schemaVersion]tableMeta{
previousVersion: {
tableName: "operation_names",
insertStmt: "INSERT INTO %s(service_name, operation_name) VALUES (?, ?)",
Expand All @@ -90,7 +90,7 @@ var schemas = map[schemaVersion]*tableMeta{
type OperationNamesStorage struct {
// CQL statements are public so that Cassandra2 storage can override them
schemaVersion schemaVersion
table *tableMeta
table tableMeta
session cassandra.Session
writeCacheTTL time.Duration
metrics *casMetrics.Table
Expand Down