Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit a9db25839a59fa779912c66aca6d7be41d5c36a0 1 parent 63ff2cc
@pavel-paulau pavel-paulau authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/membase/performance/stats.py
View
5 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"] = []
Please sign in to comment.
Something went wrong with that request. Please try again.