Skip to content

Commit

Permalink
Merge pull request #306 from tmenjo/fix-is-refresh-required
Browse files Browse the repository at this point in the history
sheep: Check shared lock state even if VDI is snapshot
  • Loading branch information
mitake committed Sep 6, 2016
2 parents dbf83bc + 245abd6 commit 3373df2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions sheep/vdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,6 @@ worker_fn bool is_refresh_required(uint32_t vid)
goto out;
}

if (entry->snapshot)
goto out;

if (entry->lock_state != LOCK_STATE_SHARED)
goto out;

Expand Down Expand Up @@ -921,9 +918,6 @@ worker_fn void validate_myself(uint32_t vid)
goto out;
}

if (entry->snapshot)
goto out;

if (entry->lock_state != LOCK_STATE_SHARED)
goto out;

Expand Down

0 comments on commit 3373df2

Please sign in to comment.