cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [4/6] git commit: formatting
Date Wed, 21 Nov 2012 22:45:46 GMT
formatting


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

Branch: refs/heads/trunk
Commit: ad36c8fd886843038b751a63be45a72e22f620ab
Parents: cc166a5
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Wed Nov 21 16:45:00 2012 -0600
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Wed Nov 21 16:45:00 2012 -0600

----------------------------------------------------------------------
 .../cassandra/io/LazilyCompactedRowTest.java       |    6 ++++--
 .../cassandra/io/sstable/SSTableReaderTest.java    |    5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ad36c8fd/test/unit/org/apache/cassandra/io/LazilyCompactedRowTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/LazilyCompactedRowTest.java b/test/unit/org/apache/cassandra/io/LazilyCompactedRowTest.java
index 3b6f69e..0608366 100644
--- a/test/unit/org/apache/cassandra/io/LazilyCompactedRowTest.java
+++ b/test/unit/org/apache/cassandra/io/LazilyCompactedRowTest.java
@@ -278,8 +278,10 @@ public class LazilyCompactedRowTest extends SchemaLoader
         ColumnFamilyStore cfs = table.getColumnFamilyStore("Standard1");
 
         final int ROWS_PER_SSTABLE = 10;
-        for (int j = 0; j < (DatabaseDescriptor.getIndexInterval() * 3) / ROWS_PER_SSTABLE;
j++) {
-            for (int i = 0; i < ROWS_PER_SSTABLE; i++) {
+        for (int j = 0; j < (DatabaseDescriptor.getIndexInterval() * 3) / ROWS_PER_SSTABLE;
j++)
+        {
+            for (int i = 0; i < ROWS_PER_SSTABLE; i++)
+            {
                 ByteBuffer key = ByteBufferUtil.bytes(String.valueOf(i % 2));
                 RowMutation rm = new RowMutation("Keyspace1", key);
                 rm.add(new QueryPath("Standard1", null, ByteBufferUtil.bytes(String.valueOf(i
/ 2))), ByteBufferUtil.EMPTY_BYTE_BUFFER, j * ROWS_PER_SSTABLE + i);

http://git-wip-us.apache.org/repos/asf/cassandra/blob/ad36c8fd/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
index 4dea430..0fe9757 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
@@ -260,7 +260,8 @@ public class SSTableReaderTest extends SchemaLoader
 
         DecoratedKey firstKey = null, lastKey = null;
         long timestamp = System.currentTimeMillis();
-        for (int i = 0; i < DatabaseDescriptor.getIndexInterval(); i++) {
+        for (int i = 0; i < DatabaseDescriptor.getIndexInterval(); i++)
+        {
             DecoratedKey key = Util.dk(String.valueOf(i));
             if (firstKey == null)
                 firstKey = key;
@@ -270,7 +271,7 @@ public class SSTableReaderTest extends SchemaLoader
                 lastKey = key;
             RowMutation rm = new RowMutation(ks, key.key);
             rm.add(new QueryPath(cf, null, ByteBufferUtil.bytes("col")),
-                          ByteBufferUtil.EMPTY_BYTE_BUFFER, timestamp);
+                   ByteBufferUtil.EMPTY_BYTE_BUFFER, timestamp);
             rm.apply();
         }
         store.forceBlockingFlush();


Mime
View raw message