Skip to content

Commit 1e1e9a9

Browse files
author
Tim Vaillancourt
committed
missing port on log line
1 parent c9b99fd commit 1e1e9a9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

MongoBackup/Methods/Dumper.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def run(self):
9494
# backup a single non-replset config server, if exists:
9595
if not self.config_replset and isinstance(self.config_server, dict):
9696
logging.info("Using non-replset backup method for config server mongodump")
97-
thread = Dump(
97+
self.threads = [Dump(
9898
self.response_queue,
9999
'configsvr',
100100
self.config_server['host'],
@@ -105,8 +105,7 @@ def run(self):
105105
self.binary,
106106
self.dump_gzip,
107107
self.verbose
108-
)
109-
self.threads = [thread]
108+
)]
110109
self.threads[0].start()
111110
if not len(self.threads) == 1:
112111
raise Exception, 'No backup threads started!', None

MongoBackup/Sharding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def get_config_server(self, force=False):
126126
configdb_hosts = self.get_configdb_hosts()
127127
try:
128128
config_host, config_port = configdb_hosts[0].split(":")
129-
logging.info("Found sharding config server: %s" % (config_host))
129+
logging.info("Found sharding config server: %s:%s" % (config_host, config_port))
130130

131131
self.config_db = DB(config_host, config_port, self.user, self.password, self.authdb)
132132
rs = Replset(self.config_db, self.user, self.password, self.authdb)

0 commit comments

Comments
 (0)