Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

integratyWriter[sic] doesn't need to be a field of SSTableWriter

  • Loading branch information...
commit b460b565e20fdb4739fc92ce387136b39d16e2f1 1 parent bfa06db
@mebigfatguy mebigfatguy authored
View
4 src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
@@ -46,7 +46,6 @@
private DecoratedKey lastWrittenKey;
private FileMark dataMark;
private final SSTableMetadata.Collector sstableMetadataCollector;
- private DataIntegrityMetadata.ChecksumWriter integratyWriter;
public SSTableWriter(String filename, long keyCount)
{
@@ -107,8 +106,7 @@ public SSTableWriter(String filename,
{
dbuilder = SegmentedFile.getBuilder(DatabaseDescriptor.getDiskAccessMode());
dataFile = SequentialWriter.open(new File(getFilename()), !metadata.populateIoCacheOnFlush());
- integratyWriter = DataIntegrityMetadata.checksumWriter(descriptor);
- dataFile.setDataIntegratyWriter(integratyWriter);
+ dataFile.setDataIntegrityWriter(DataIntegrityMetadata.checksumWriter(descriptor));
}
this.sstableMetadataCollector = sstableMetadataCollector;
View
2  src/java/org/apache/cassandra/io/util/SequentialWriter.java
@@ -399,7 +399,7 @@ public void close()
* This can only be called before any data is written to this write,
* otherwise an IllegalStateException is thrown.
*/
- public void setDataIntegratyWriter(DataIntegrityMetadata.ChecksumWriter writer)
+ public void setDataIntegrityWriter(DataIntegrityMetadata.ChecksumWriter writer)
{
if (current != 0)
throw new IllegalStateException();
Please sign in to comment.
Something went wrong with that request. Please try again.