Permalink
Browse files

slave_okay=True

  • Loading branch information...
1 parent 0b82b56 commit 3a0274a2a810521b3188dd6549c4dee643797be9 @japerk japerk committed Feb 16, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 mongo_collcount
  2. +1 −1 mongo_collsize
  3. +1 −1 mongo_indexsize
View
@@ -36,7 +36,7 @@ settings_db = 'mydb'
def getCollstats():
- con = Connection(settings_host, int(settings_port))
+ con = Connection(settings_host, int(settings_port), slave_okay=True)
db = con[settings_db]
for coll in db.collection_names():
View
@@ -38,7 +38,7 @@ settings_fields = {'totalIndexSize': 'index', 'storageSize': 'storage', 'size':
def getCollstats():
- con = Connection(settings_host, int(settings_port))
+ con = Connection(settings_host, int(settings_port), slave_okay=True)
db = con[settings_db]
stats = db.command("collstats", settings_collection)
View
@@ -36,7 +36,7 @@ settings_db = 'mydb'
def getCollstats():
- con = Connection(settings_host, int(settings_port))
+ con = Connection(settings_host, int(settings_port), slave_okay=True)
db = con[settings_db]
for coll in db.collection_names():

0 comments on commit 3a0274a

Please sign in to comment.