Skip to content

Commit

Permalink
DRILL-6343: bit vector copyFromSafe is not doing realloc
Browse files Browse the repository at this point in the history
  • Loading branch information
ppadma committed Apr 27, 2018
1 parent a18885d commit 50a6339
Showing 1 changed file with 3 additions and 5 deletions.
Expand Up @@ -215,13 +215,11 @@ public void copyFrom(int inIndex, int outIndex, BitVector from) {
this.mutator.set(outIndex, from.accessor.get(inIndex));
}

public boolean copyFromSafe(int inIndex, int outIndex, BitVector from) {
if (outIndex >= this.getValueCapacity()) {
decrementAllocationMonitor();
return false;
public void copyFromSafe(int inIndex, int outIndex, BitVector from) {
while (outIndex >= this.getValueCapacity()) {
reAlloc();
}
copyFrom(inIndex, outIndex, from);
return true;
}

@Override
Expand Down

0 comments on commit 50a6339

Please sign in to comment.