Skip to content

Commit

Permalink
delete reference in registery
Browse files Browse the repository at this point in the history
  • Loading branch information
JoranAngevaare committed Oct 22, 2020
1 parent 050e71e commit 6f5814b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions strax/storage/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def _read_chunk(self, backend_key, chunk_info, dtype, compressor):
for i in range(chunk_len):
for key in np.dtype(dtype).names:
result[i][key] = chunk_doc[i][key]

# We are done with this chunk.
del self.chunks_registry[chunk_i]
return result

def _saver(self, key, metadata):
Expand Down

0 comments on commit 6f5814b

Please sign in to comment.