You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by ja...@apache.org on 2013/08/02 05:03:03 UTC

[03/13] git commit: Don't set valueCount in allocateNew()

Don't set valueCount in allocateNew()


Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/401e8857
Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/401e8857
Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/401e8857

Branch: refs/heads/master
Commit: 401e8857fd8347f3bdf91083da58c82684ceffb0
Parents: 0d8bbf0
Author: Ben Becker <be...@gmail.com>
Authored: Thu Aug 1 17:13:16 2013 -0700
Committer: Ben Becker <be...@gmail.com>
Committed: Thu Aug 1 17:13:16 2013 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/drill/exec/vector/BitVector.java       | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/401e8857/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/vector/BitVector.java
----------------------------------------------------------------------
diff --git a/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/vector/BitVector.java b/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/vector/BitVector.java
index 5c92df9..dceff1c 100644
--- a/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/vector/BitVector.java
+++ b/sandbox/prototype/exec/java-exec/src/main/java/org/apache/drill/exec/vector/BitVector.java
@@ -40,7 +40,6 @@ public final class BitVector extends BaseDataValueVector implements FixedWidthVe
   public void allocateNew(int valueCount) {
     clear();
     valueCapacity = valueCount;
-    this.valueCount = valueCount;
     int valueSize = getSizeFromCount(valueCount);
     data = allocator.buffer(valueSize);
     for (int i = 0; i < valueSize; i++) {