From 672bb353be2f159966f351ab2de914b433a934f9 Mon Sep 17 00:00:00 2001 From: Min Chen Date: Wed, 3 Sep 2014 10:33:11 -0700 Subject: [PATCH] CLOUDSTACK-6236:fix a copy-and-paste error for decrRefCnt in VolumeDataStoreVO. --- .../storage/datastore/db/VolumeDataStoreVO.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/engine/schema/src/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java b/engine/schema/src/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java index aa57e742148..91d4ef71cfa 100755 --- a/engine/schema/src/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java +++ b/engine/schema/src/org/apache/cloudstack/storage/datastore/db/VolumeDataStoreVO.java @@ -350,12 +350,7 @@ public class VolumeDataStoreVO implements StateObject 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 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() {