mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6236:fix a copy-and-paste error for decrRefCnt in
VolumeDataStoreVO.
This commit is contained in:
parent
dc3f0cbc63
commit
672bb353be
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue