Permalink
Browse files

MB-100: fix gzip writer

Change-Id: I12a1c6a6bad11d0000d7db1f9c09611822262956
Reviewed-on: http://review.couchbase.org/22624
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
pavel-paulau committed Nov 19, 2012
1 parent 63ff2cc commit a9db25839a59fa779912c66aca6d7be41d5c36a0
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/membase/performance/stats.py
@@ -206,8 +206,9 @@ def export(self, name, test_params):
phase = '.loop'
name = str(self.client_id) + phase
- with gzip.open("{0}.json.gz".format(name), 'wb') as file:
- file.write(json.dumps(obj))
+ file = gzip.open("{0}.json.gz".format(name), 'wb')
+ file.write(json.dumps(obj))
+ file.close()
def get_bucket_size(self, bucket, nodes, frequency):
self._task["bucket_size"] = []

0 comments on commit a9db258

Please sign in to comment.