Skip to content

Commit

Permalink
File system fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karasiq committed Aug 2, 2018
1 parent 102b039 commit 489f98a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ class VirtualFSDispatcher(config: SCDriveConfig) extends Actor with ActorLogging
if (regionId != regionId2)
return Future.failed(StorageException.IOFailure(path, new IOException("Regions id should match")))

state.fileWrites.get(newPath).foreach(_ ! PoisonPill)

if (state.fileWrites.contains(path)) {
for {
oldFile syncFile(path)
Expand Down

0 comments on commit 489f98a

Please sign in to comment.