CLOUDSTACK-6236:fix a copy-and-paste error for decrRefCnt in

VolumeDataStoreVO.
This commit is contained in:
Min Chen 2014-09-03 10:33:11 -07:00
parent dc3f0cbc63
commit 672bb353be

View File

@ -350,12 +350,7 @@ public class VolumeDataStoreVO implements StateObject<ObjectInDataStoreStateMach
}
public void setRefCnt(Long refCnt) {
if (refCnt > 0) {
refCnt--;
}
else {
s_logger.warn("We should not try to decrement a zero reference count even though our code has guarded");
}
this.refCnt = refCnt;
}
public void incrRefCnt() {
@ -363,7 +358,12 @@ public class VolumeDataStoreVO implements StateObject<ObjectInDataStoreStateMach
}
public void decrRefCnt() {
refCnt--;
if (refCnt > 0) {
refCnt--;
}
else {
s_logger.warn("We should not try to decrement a zero reference count even though our code has guarded");
}
}
public String getExtractUrl() {