alievmirza commented on code in PR #1263:
URL: https://github.com/apache/ignite-3/pull/1263#discussion_r1007817052


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -275,7 +276,17 @@ private void handleTxCleanupCommand(TxCleanupCommand cmd, 
long commandIndex) {
     /** {@inheritDoc} */
     @Override
     public void onSnapshotSave(Path path, Consumer<Throwable> doneClo) {
-        storage.flush();
+        long maxLastAppliedIndex = Math.max(storage.lastAppliedIndex(), 
txStateStorage.lastAppliedIndex());
+
+        storage.lastAppliedIndex(maxLastAppliedIndex);

Review Comment:
   done



##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/raft/PartitionListener.java:
##########
@@ -275,7 +276,17 @@ private void handleTxCleanupCommand(TxCleanupCommand cmd, 
long commandIndex) {
     /** {@inheritDoc} */
     @Override
     public void onSnapshotSave(Path path, Consumer<Throwable> doneClo) {
-        storage.flush();
+        long maxLastAppliedIndex = Math.max(storage.lastAppliedIndex(), 
txStateStorage.lastAppliedIndex());

Review Comment:
   done



-- 
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.

To unsubscribe, e-mail: [email protected]

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

Reply via email to