pivotal-jbarrett commented on a change in pull request #6500:
URL: https://github.com/apache/geode/pull/6500#discussion_r636300684



##########
File path: geode-core/src/main/java/org/apache/geode/internal/cache/Oplog.java
##########
@@ -5723,89 +5590,79 @@ public DirectoryHolder getDirectoryHolder() {
    * @return long value indicating the current size of the oplog.
    */
   long getOplogSize() {
-    return this.crf.currSize + this.drf.currSize;
+    return crf.currSize + drf.currSize;
   }
 
   boolean isOplogEmpty() {
-    return this.crf.currSize <= (OPLOG_DISK_STORE_REC_SIZE + 
OPLOG_MAGIC_SEQ_REC_SIZE)
-        && this.drf.currSize <= (OPLOG_DISK_STORE_REC_SIZE + 
OPLOG_MAGIC_SEQ_REC_SIZE);
+    return crf.currSize <= (OPLOG_DISK_STORE_REC_SIZE + 
OPLOG_MAGIC_SEQ_REC_SIZE)
+        && drf.currSize <= (OPLOG_DISK_STORE_REC_SIZE + 
OPLOG_MAGIC_SEQ_REC_SIZE);
   }
 
   void incLiveCount() {
-    this.totalLiveCount.incrementAndGet();
+    totalLiveCount.incrementAndGet();
   }
 
   private void decLiveCount() {
-    this.totalLiveCount.decrementAndGet();
+    totalLiveCount.decrementAndGet();
   }
 
   /**
    * Return true if a record (crf or drf) has been added to this oplog
    */
   boolean hasBeenUsed() {
-    return this.hasDeletes.get() || this.totalCount.get() > 0;
+    return hasDeletes.get() || totalCount.get() > 0;
   }
 
   void incTotalCount() {
     if (!isPhase2()) {
-      this.totalCount.incrementAndGet();
+      totalCount.incrementAndGet();
     }
   }
 
   private void finishedAppending() {
     // No need to get the backup lock prior to synchronizing (correct lock 
order) since the
     // synchronized block does not attempt to get the backup lock (incorrect 
lock order)
-    synchronized (this.lock/* crf */) {
-      this.doneAppending = true;
+    synchronized (lock/* crf */) {
+      doneAppending = true;
     }
     handleNoLiveValues();
     // I'm deadcoding the following because it is not safe unless we change to
     // always recover values. If we don't recover values then
     // an oplog we recovered from may still need to fault values in from 
memory.

Review comment:
       I removed this comment in a pending commit. I don't want to push it 
until other's have reviewed since it will kick off a full PR run without any 
code changes. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to