Skip to content

Commit 9ba4d04

Browse files
authored
Merge pull request #3 from objectrocket/rebaseAndFixV1.4.1
[OR5-2306] Rebase and fix v1.4.1
2 parents e9d4b1b + 9aa6c35 commit 9ba4d04

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/stale.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 30
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- security
8+
# Label to use when marking an issue as stale
9+
staleLabel: stale
10+
# Comment to post when marking an issue as stale. Set to `false` to disable
11+
markComment: >
12+
This issue has been automatically marked as stale because it has not had
13+
recent activity. It will be closed if no further activity occurs. Thank you
14+
for your contributions.
15+
# Comment to post when closing a stale issue. Set to `false` to disable
16+
closeComment: false

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ define ENVS_STATIC
1818
CGO_ENABLED=$(CGO_ENABLED)
1919
endef
2020

21-
BUILD_FLAGS=-mod=vendor -tags gssapi
21+
#TODO (jcru) Could not figure out how to compile this without CGO. We don't need gssapi support.
22+
#BUILD_FLAGS=-mod=vendor -tags gssapi
23+
BUILD_FLAGS=-mod=vendor
2224
versionpath?=github.com/percona/percona-backup-mongodb/version
2325
LDFLAGS= -X $(versionpath).gitCommit=$(GITCOMMIT) -X $(versionpath).gitBranch=$(GITBRANCH) -X $(versionpath).buildTime=$(BUILDTIME) -X $(versionpath).version=$(VERSION)
2426
LDFLAGS_STATIC=$(LDFLAGS) -extldflags "-static"
@@ -92,4 +94,4 @@ install-pbm-static:
9294
install-agent-static:
9395
$(ENVS_STATIC) go install -ldflags="$(LDFLAGS_STATIC)" $(BUILD_FLAGS) ./cmd/pbm-agent
9496
install-stest-static:
95-
$(ENVS_STATIC) go install -ldflags="$(LDFLAGS_STATIC)" $(BUILD_FLAGS) ./cmd/pbm-speed-test
97+
$(ENVS_STATIC) go install -ldflags="$(LDFLAGS_STATIC)" $(BUILD_FLAGS) ./cmd/pbm-speed-test

cmd/pbm-agent/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os"
88
"runtime"
99
"strconv"
10-
"strings"
1110

1211
"github.com/alecthomas/kingpin"
1312
"github.com/pkg/errors"
@@ -53,7 +52,6 @@ func main() {
5352
}
5453

5554
func runAgent(mongoURI string, dumpConns int) error {
56-
mongoURI = "mongodb://" + strings.Replace(mongoURI, "mongodb://", "", 1)
5755

5856
ctx, cancel := context.WithCancel(context.Background())
5957
defer cancel()

pbm/pbm.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ type PBM struct {
224224
// In the sharded cluster both agents and ctls should have a connection to ConfigServer replica set in order to communicate via PBM collections.
225225
// If agent's or ctl's local node is not a member of CongigServer, after discovering current topology connection will be established to ConfigServer.
226226
func New(ctx context.Context, uri, appName string) (*PBM, error) {
227-
uri = "mongodb://" + strings.Replace(uri, "mongodb://", "", 1)
228227

229228
client, err := connect(ctx, uri, appName)
230229
if err != nil {

0 commit comments

Comments
 (0)