cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1035049 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
Date Sun, 14 Nov 2010 18:46:49 GMT
Author: jbellis
Date: Sun Nov 14 18:46:48 2010
New Revision: 1035049

URL: http://svn.apache.org/viewvc?rev=1035049&view=rev
Log:
r/m unused SSTW.abort method.
patch by jbellis

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java?rev=1035049&r1=1035048&r2=1035049&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
Sun Nov 14 18:46:48 2010
@@ -77,30 +77,6 @@ public class SSTableWriter extends SSTab
         components.add(Component.STATS);
     }
     
-    /** something bad happened and the files associated with this writer need to be deleted.
*/
-    public void abort()
-    {
-        try
-        {
-            dataFile.close();
-            FileUtils.deleteWithConfirm(dataFile.getPath());
-        }
-        catch (IOException ex) 
-        {
-            logger.error(String.format("Caught exception while deleting aborted sstable (%s).
%s", dataFile.getPath(), ex.getMessage()));
-        }
-        
-        try
-        {
-            iwriter.close();
-            FileUtils.deleteWithConfirm(descriptor.filenameFor(SSTable.COMPONENT_INDEX));
-        }
-        catch (IOException ex)
-        {
-            logger.error(String.format("Caught exception while deleting aborted sstable (%s).
%s", descriptor.filenameFor(SSTable.COMPONENT_INDEX), ex.getMessage()));
-        }
-    }
-
     public void mark()
     {
         dataMark = dataFile.mark();



Mime
View raw message