[MINOR] Remove the duplicate code in AbstractHoodieWriteClient.startCommit (#2385)
This commit is contained in:
@@ -599,11 +599,6 @@ public abstract class AbstractHoodieWriteClient<T extends HoodieRecordPayload, I
|
|||||||
* Provides a new commit time for a write operation (insert/update/delete).
|
* Provides a new commit time for a write operation (insert/update/delete).
|
||||||
*/
|
*/
|
||||||
public String startCommit() {
|
public String startCommit() {
|
||||||
// NOTE : Need to ensure that rollback is done before a new commit is started
|
|
||||||
if (rollbackPending) {
|
|
||||||
// Only rollback pending commit/delta-commits. Do not touch compaction commits
|
|
||||||
rollbackPendingCommits();
|
|
||||||
}
|
|
||||||
String instantTime = HoodieActiveTimeline.createNewInstantTime();
|
String instantTime = HoodieActiveTimeline.createNewInstantTime();
|
||||||
startCommitWithTime(instantTime);
|
startCommitWithTime(instantTime);
|
||||||
return instantTime;
|
return instantTime;
|
||||||
|
|||||||
Reference in New Issue
Block a user