cassandra-pr mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aweisberg <...@git.apache.org>
Subject [GitHub] cassandra pull request #239: Optimize Streaming
Date Fri, 06 Jul 2018 16:39:33 GMT
Github user aweisberg commented on a diff in the pull request:

    https://github.com/apache/cassandra/pull/239#discussion_r200708031
  
    --- Diff: src/java/org/apache/cassandra/db/streaming/CassandraOutgoingFile.java ---
    @@ -62,7 +88,20 @@ public CassandraOutgoingFile(StreamOperation operation, Ref<SSTableReader>
ref,
                                                     sections,
                                                     sstable.compression ? sstable.getCompressionMetadata()
: null,
                                                     keepSSTableLevel ? sstable.getSSTableLevel()
: 0,
    -                                                sstable.header.toComponent());
    +                                                sstable.header.toComponent(), components,
shouldStreamFullSSTable());
    +    }
    +
    +    private static List<ComponentInfo> getComponents(SSTableReader sstable)
    +    {
    +        List<ComponentInfo> result = new ArrayList<>(STREAM_COMPONENTS.size());
    +        for (Component component : STREAM_COMPONENTS)
    +        {
    +            File file = new File(sstable.descriptor.filenameFor(component));
    +            if (file.exists())
    +                result.add(new ComponentInfo(component.type, file.length()));
    --- End diff --
    
    missing braces


---

---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org


Mime
View raw message