Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

Commit

Permalink
Fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
qianduoduo0904 committed Dec 8, 2022
1 parent 2d2d5b2 commit a713453
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mars/storage/shared_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def _read_init(self):
self._buffer = self._mv = shm.buf
if self._size is None:
(self._size,) = _qword_pack.unpack(shm.buf[-8:])
self._buffer = self._buffer[: self._size + 8]

def _write_close(self):
pass
Expand All @@ -88,7 +89,7 @@ def _read_close(self):

def get_buffer(self):
self.init()
return self.shm.buf
return self._buffer


class ShmStorageFileObject(StorageFileObject):
Expand Down

0 comments on commit a713453

Please sign in to comment.