Skip to content

Commit ae5874e

Browse files
committed
Add fallback dir const
1 parent b7a3ad4 commit ae5874e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pbm/restore/physical.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ import (
4646
const (
4747
defaultRSdbpath = "/data/db"
4848
defaultCSRSdbpath = "/data/configdb"
49+
fallbackDir = ".fallbackDbPath"
4950

5051
mongofslock = "mongod.lock"
5152

5253
defaultPort = 27017
5354

5455
tryConnCount = 5
5556
tryConnTimeout = 5 * time.Minute
57+
58+
internalMongodLog = "pbm.restore.log"
5659
)
5760

5861
type files struct {
@@ -1787,8 +1790,6 @@ func tryConn(port int, logpath string) (*mongo.Client, error) {
17871790
return nil, errors.Errorf("failed to connect after %d tries: %v", tryConnCount, err)
17881791
}
17891792

1790-
const internalMongodLog = "pbm.restore.log"
1791-
17921793
func (r *PhysRestore) startMongo(opts ...string) error {
17931794
if r.tmpConf != nil {
17941795
opts = append(opts, []string{"-f", r.tmpConf.Name()}...)

0 commit comments

Comments
 (0)