Permalink
Browse files

Don't retrieve vbucketservermap for memcached bucket

  • Loading branch information...
bcui6611 committed Jul 27, 2012
1 parent e7f7d7c commit d7d27afba1438e800afeea8c08450fc5e7a934a3
Showing with 4 additions and 2 deletions.
  1. +4 −2 collector.py
View
@@ -138,8 +138,10 @@ def get_bucketlist(self, server, port, user, password, bucketname, opts):
if bucket.has_key('vBucketServerMap'):
bucketinfo['vBucketServerMap'] = bucket['vBucketServerMap']
else:
- self.log.error("vBucketServerMap doesn't exist from bucket info")
- self.log.error(util.pretty_print(info))
+ if bucket['bucketType'] != "memcached":
+ self.log.error("vBucketServerMap doesn't exist from bucket info")
+ self.log.error(bucket)
+
bucketStats = bucket['basicStats']
bucketinfo['bucketStats'] = {}
for key in bucketStats.iterkeys():

0 comments on commit d7d27af

Please sign in to comment.