You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tajo.apache.org by hy...@apache.org on 2014/08/14 08:15:06 UTC

git commit: TAJO-1006: Fix wrong storage unit for kilo bytes and others.

Repository: tajo
Updated Branches:
  refs/heads/master fb4135a3b -> 23f81373f


TAJO-1006: Fix wrong storage unit for kilo bytes and others.

Closes #117


Project: http://git-wip-us.apache.org/repos/asf/tajo/repo
Commit: http://git-wip-us.apache.org/repos/asf/tajo/commit/23f81373
Tree: http://git-wip-us.apache.org/repos/asf/tajo/tree/23f81373
Diff: http://git-wip-us.apache.org/repos/asf/tajo/diff/23f81373

Branch: refs/heads/master
Commit: 23f81373fcd007e59556a5146485eba69ddeb95e
Parents: fb4135a
Author: Hyunsik Choi <hy...@apache.org>
Authored: Thu Aug 14 15:08:58 2014 +0900
Committer: Hyunsik Choi <hy...@apache.org>
Committed: Thu Aug 14 15:14:33 2014 +0900

----------------------------------------------------------------------
 CHANGES                                                         | 2 ++
 tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tajo/blob/23f81373/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 956db89..14eb1e3 100644
--- a/CHANGES
+++ b/CHANGES
@@ -112,6 +112,8 @@ Release 0.9.0 - unreleased
 
   BUG FIXES
 
+    TAJO-1006: Fix wrong storage unit for kilo bytes and others. (hyunsik)
+
     TAJO-1000: TextDatum.asChar() is incorrect, if client charset is different.
     (jinho)
 

http://git-wip-us.apache.org/repos/asf/tajo/blob/23f81373/tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java
----------------------------------------------------------------------
diff --git a/tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java b/tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java
index 8cde659..dd345c1 100644
--- a/tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java
+++ b/tajo-common/src/main/java/org/apache/tajo/unit/StorageUnit.java
@@ -21,7 +21,7 @@ package org.apache.tajo.unit;
 public class StorageUnit {
 
 	public static final int B = 8;
-	public static final int KB = B * 1024;
+	public static final int KB = 1024;
 	public static final int MB = KB * 1024;
 	public static final int GB = MB * 1024;
 	public static final int TB = GB * 1024;