@@ -81,7 +81,7 @@ public class Frame implements Comparable {
8181 protected byte [] b ;
8282
8383 private FrameData frameData ;
84- private DataObject dataObject ;
84+ private Table dataObject ;
8585 private Class entityClass ;
8686 private static final Logger logger = LoggerFactory .getLogger (Frame .class );
8787
@@ -100,15 +100,15 @@ public void setFrameData(FrameData frameData) {
100100 this .frameData = frameData ;
101101 }
102102
103- public DataObject getDataObject () {
103+ public Table getDataObject () {
104104 return dataObject ;
105105 }
106106
107107 public Class getEntityClass () {
108108 return entityClass ;
109109 }
110110
111- public Frame (int file , long pointer , int size , DataObject t ) throws InternalException {
111+ public Frame (int file , long pointer , int size , Table t ) throws InternalException {
112112 this .file = file ;
113113 this .pointer = pointer ;
114114 this .allocFile = 0 ;
@@ -124,7 +124,7 @@ public Frame(int file, long pointer, int size, DataObject t) throws InternalExce
124124 }
125125 }
126126
127- public Frame (FrameData bd , DataObject t ) throws InternalException {
127+ public Frame (FrameData bd , Table t ) throws InternalException {
128128 this .file = bd .getFile ();
129129 this .pointer = bd .getPtr ();
130130 this .allocFile = (int )bd .getAllocId ()%4096 ;
@@ -187,7 +187,7 @@ public Frame(byte[] b) throws InternalException {
187187 }
188188
189189 //constructor for replication service
190- public Frame (byte [] b , int file , long pointer , DataObject t ) throws InternalException {
190+ public Frame (byte [] b , int file , long pointer , Table t ) throws InternalException {
191191 this .dataObject = t ;
192192 if (b .length <FRAME_HEADER_SIZE ) {
193193 throw new InvalidFrameHeader ();
@@ -232,7 +232,7 @@ public Frame(byte[] b, int file, long pointer, DataObject t) throws InternalExce
232232 }
233233 }
234234
235- public Frame (byte [] bb , int file , long pointer , int size , FrameData bd , DataObject t , Class c ) throws IOException , InternalException , ClassNotFoundException , IllegalAccessException , InstantiationException {
235+ public Frame (byte [] bb , int file , long pointer , int size , FrameData bd , Table t , Class c ) throws IOException , InternalException , ClassNotFoundException , IllegalAccessException , InstantiationException {
236236 entityClass = c ;
237237 dataObject = t ;
238238 if (bd !=null ) { //system frame not used dataobject
@@ -484,21 +484,14 @@ public synchronized void removeChunk (int ptr, LLT llt, boolean ignore) {
484484 throw new NullPointerException ();
485485 }
486486 } else {
487- if (chunk == null ) {
488- System .out .println ("ops" );
489- }
490487 if (chunk .getHeader ().getLltId () < sync ) {
491488 final ByteString sc = new ByteString ();
492489 sc .append (chunk .getHeader ().getHeader ());
493490 sc .append (chunk .getChunk ());
494- if (!Config .getConfig ().SYNC_LOCK_ENABLE ) {
495- snap .put (llt .getId (), sc .getBytes ());
496- }
491+ if (!Config .getConfig ().SYNC_LOCK_ENABLE ) { snap .put (llt .getId (), sc .getBytes ()); }
497492 chunk .getHeader ().setLltId (llt == null ? 0 : llt .getId ());
498- if (llt != null ) {
499- llt .add (this );
500- }
501493 }
494+ if (llt != null ) { llt .add (this ); }
502495 data .removeByPtr (ptr );
503496 }
504497 }
0 commit comments