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

VolumeDataStoreVO.
(cherry picked from commit 672bb353be)

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Min Chen 2014-09-03 10:33:11 -07:00 committed by Rohit Yadav
parent 88ec08439d
commit 2534b54853
1 changed files with 7 additions and 7 deletions

View File

@ -348,12 +348,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() {
@ -361,7 +356,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() {