Skip to content

Instantly share code, notes, and snippets.

@dasl-
Last active December 29, 2023 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasl-/ea4ca018b5542739aa0efdc64fda2667 to your computer and use it in GitHub Desktop.
Save dasl-/ea4ca018b5542739aa0efdc64fda2667 to your computer and use it in GitHub Desktop.
diff --git a/go/vt/vtgate/vindexes/hybrid.go b/go/vt/vtgate/vindexes/hybrid.go
index 55ad0fe773..fd1c40b063 100644
--- a/go/vt/vtgate/vindexes/hybrid.go
+++ b/go/vt/vtgate/vindexes/hybrid.go
@@ -28,6 +28,7 @@ import (
var (
_ SingleColumn = (*Hybrid)(nil)
+ hybridVindexes = make(map[string]Vindex)
)
func init() {
@@ -55,6 +56,7 @@ type Hybrid struct {
// included in the supplied map
func NewHybrid(name string, m map[string]string) (Vindex, error) {
h := &Hybrid{name: name}
+ hybridVindexes[name] = h
var err error
h.threshold, err = strconv.ParseUint(m["threshold"], 0, 64)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment