Skip to content

Instantly share code, notes, and snippets.

async (perform) not supported ios10.2
{
"server_config": {
},
"queue_config": {
"should_play_game_of_life": true
},
"led_settings": {
"log_level": "verbose",
"flip_x": true
diff --git a/go/vt/vtgate/executor.go b/go/vt/vtgate/executor.go
index 0350d8bc7..a9b8d77c5 100644
--- a/go/vt/vtgate/executor.go
+++ b/go/vt/vtgate/executor.go
@@ -649,6 +649,49 @@ func (e *Executor) handleSet(ctx context.Context, safeSession *SafeSession, sql
return &sqltypes.Result{}, nil
}
+// handleSetWorkload like handleSet above but handles only SET workload queries, all other sets are unsupported
+// needed for StreamExecute which does not support transactions
diff --git a/go/vt/vtgate/executor.go b/go/vt/vtgate/executor.go
index 0350d8bc7..b0721d10b 100644
--- a/go/vt/vtgate/executor.go
+++ b/go/vt/vtgate/executor.go
@@ -649,6 +649,49 @@ func (e *Executor) handleSet(ctx context.Context, safeSession *SafeSession, sql
return &sqltypes.Result{}, nil
}
+// handleSetWorkload like handleSet above but handles only SET workload queries, all other sets are unsupported
+// needed for StreamExecute which does not support transactions
bash-4.2$ seq 8 | xargs -n1 -P8 -I {} bash -c 'slow_seq {}'
Count to 1
1Count to 2
Count to 3
1Count to 4
11Count to 5
Count to 6
Count to 7
1Count to 8
111
@dasl-
dasl- / foo.diff
Created September 11, 2019 22:32
diff -u go/cmd/mysqlctl/mysqlctl.go.orig go/cmd/mysqlctl/mysqlctl.go
--- go/cmd/mysqlctl/mysqlctl.go.orig 2019-09-11 18:32:26.000000000 -0400
+++ go/cmd/mysqlctl/mysqlctl.go 2019-09-11 18:32:26.000000000 -0400
@@ -25,6 +25,7 @@
"golang.org/x/net/context"
+ "vitess.io/vitess/go/context2"
"vitess.io/vitess/go/exit"
"vitess.io/vitess/go/flagutil"
@dasl-
dasl- / foo.diff
Created September 11, 2019 22:36
diff --git a/go/cmd/mysqlctl/mysqlctl.go b/go/cmd/mysqlctl/mysqlctl.go
index 2f39206a0..bf051d7e4 100644
--- a/go/cmd/mysqlctl/mysqlctl.go
+++ b/go/cmd/mysqlctl/mysqlctl.go
@@ -25,6 +25,7 @@ import (
"golang.org/x/net/context"
+ "vitess.io/vitess/go/context2"
"vitess.io/vitess/go/exit"
@dasl-
dasl- / foo.diff
Created September 17, 2019 22:54
diff --git a/go/cmd/mysqlctl/mysqlctl.go b/go/cmd/mysqlctl/mysqlctl.go
index c59e11cb9..bf051d7e4 100644
--- a/go/cmd/mysqlctl/mysqlctl.go
+++ b/go/cmd/mysqlctl/mysqlctl.go
@@ -25,6 +25,7 @@ import (
"golang.org/x/net/context"
+ "vitess.io/vitess/go/context2"
"vitess.io/vitess/go/exit"
@dasl-
dasl- / foo.diff
Created September 17, 2019 23:07
diff --git a/go/cmd/mysqlctl/mysqlctl.go b/go/cmd/mysqlctl/mysqlctl.go
index 2f39206a0..bf051d7e4 100644
--- a/go/cmd/mysqlctl/mysqlctl.go
+++ b/go/cmd/mysqlctl/mysqlctl.go
@@ -25,6 +25,7 @@ import (
"golang.org/x/net/context"
+ "vitess.io/vitess/go/context2"
"vitess.io/vitess/go/exit"
@dasl-
dasl- / foo.diff
Created September 17, 2019 23:25
diff --git a/go/cmd/mysqlctl/mysqlctl.go b/go/cmd/mysqlctl/mysqlctl.go
index d7c585f29..30aa20ecd 100644
--- a/go/cmd/mysqlctl/mysqlctl.go
+++ b/go/cmd/mysqlctl/mysqlctl.go
@@ -25,6 +25,7 @@ import (
"golang.org/x/net/context"
+ "vitess.io/vitess/go/context2"
"vitess.io/vitess/go/exit"