Skip to content

Commit

Permalink
Merge pull request #34 from taosdata/fix/sunpeng/TS-3080-vgroups-info
Browse files Browse the repository at this point in the history
fix: fix for vgroups info
  • Loading branch information
sunpe authored Apr 4, 2023
2 parents a7d21ef + 08f7d97 commit 0c70b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ func insertVgroupSql(g VgroupInfo, DnodeID int, DnodeEp string, ClusterID string
var sqls []string
sqls = append(sqls, fmt.Sprintf("insert into vgroups_info_%s using vgroups_info tags (%d, '%s', '%s') "+
"(ts, vgroup_id, database_name, tables_num, status, ) values ( '%s','%d', '%s', %d, '%s')",
ClusterID+strconv.Itoa(DnodeID), DnodeID, DnodeEp, ClusterID,
ClusterID+strconv.Itoa(DnodeID)+strconv.Itoa(g.VgroupID), DnodeID, DnodeEp, ClusterID,
ts, g.VgroupID, g.DatabaseName, g.TablesNum, g.Status))
for _, v := range g.Vnodes {
sqls = append(sqls, fmt.Sprintf("insert into vnodes_role_%s using vnodes_role tags (%d, '%s', '%s') values ('%s', '%s')",
Expand Down

0 comments on commit 0c70b48

Please sign in to comment.