Skip to content

Commit

Permalink
no read replica stats
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Feb 11, 2025
1 parent d040cfa commit 6df2999
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/statspro/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
14 changes: 14 additions & 0 deletions go/libraries/doltcore/sqle/statspro/noop_provider.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package statspro

import (
Expand Down
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/statspro/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (sc *StatsCoord) Init(ctx context.Context, dbs []dsess.SqlDatabase, keepSto

eg := errgroup.Group{}
for _, db := range dbs {
if db, ok := db.(dsess.SqlDatabase); ok {
if db, ok := db.(*sqle.Database); ok { // exclude read replica dbs
br, err := db.DbData().Ddb.GetBranches(ctx)
if err != nil {
return err
Expand Down
14 changes: 14 additions & 0 deletions go/libraries/doltcore/sqle/statspro/script_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
// Copyright 2025 Dolthub, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package statspro

import (
Expand Down
3 changes: 2 additions & 1 deletion go/performance/utils/benchmark_runner/sysbench.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ package benchmark_runner
import (
"context"
"fmt"
"github.com/google/uuid"
"os"
"os/exec"
"path/filepath"
"strings"

"github.com/google/uuid"
)

type sysbenchTesterImpl struct {
Expand Down

0 comments on commit 6df2999

Please sign in to comment.