Skip to content

Commit

Permalink
Checked if near cache was available before access
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetmircik committed Oct 15, 2018
1 parent 1cf4400 commit 9140136
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -130,6 +130,7 @@ public void setStaleReadDetector(StaleReadDetector staleReadDetector) {

@Override
public StaleReadDetector getStaleReadDetector() {
checkAvailable();
return staleReadDetector;
}

Expand Down Expand Up @@ -397,6 +398,7 @@ public long tryReserveForUpdate(K key, Data keyData) {

@Override
public V tryPublishReserved(K key, V value, long reservationId, boolean deserialize) {
checkAvailable();
return updateAndGetReserved(key, value, reservationId, deserialize);
}

Expand Down

0 comments on commit 9140136

Please sign in to comment.