Last active
December 29, 2023 19:22
-
-
Save dasl-/ea4ca018b5542739aa0efdc64fda2667 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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