Skip to content

Commit f5c1279

Browse files
author
Tim Vaillancourt
committed
make score an int
1 parent a75cb66 commit f5c1279

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MongoBackup/ReplsetHandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def find_desirable_secondary(self):
103103
log_msg = "Found SECONDARY %s/%s with too-high replication lag! Skipping" % (rs_name, member['name'])
104104

105105
log_data['optime'] = member['optime']['ts']
106-
log_data['score'] = score
106+
log_data['score'] = int(score)
107107
logging.debug("%s: %s" % (log_msg, str(log_data)))
108108
if secondary is None or (secondary['count'] + 1) < quorum_count:
109109
logging.fatal("Not enough secondaries in replset %s to take backup! Num replset members: %i, required quorum: %i" % (

0 commit comments

Comments
 (0)