Skip to content

Commit

Permalink
HBASE-29064. Spotless apply
Browse files Browse the repository at this point in the history
  • Loading branch information
anmolnar committed Jan 16, 2025
1 parent 5bedce2 commit a9a12c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.hadoop.hbase.replication;

import org.apache.hadoop.hbase.HBaseInterfaceAudience;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,10 @@ private boolean updateLogPosition(WALEntryBatch batch, ReplicationResult replica
// there is no entry in the batch. It is OK because that the queue storage will ignore the zero
// position and the file will be removed soon in cleanOldLogs.
if (replicated == ReplicationResult.COMMITTED) {
if (batch.isEndOfFile() || !batch.getLastWalPath().equals(currentPath)
|| batch.getLastWalPosition() != currentPosition) {
if (
batch.isEndOfFile() || !batch.getLastWalPath().equals(currentPath)
|| batch.getLastWalPosition() != currentPosition
) {
source.logPositionAndCleanOldLogs(batch);
updated = true;
}
Expand Down

0 comments on commit a9a12c3

Please sign in to comment.