Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix lost message issues 12221 (#12223)
Fixes #12221 *(or if this PR is one task of a github issue, please add `Master Issue: #<xyz>` to link to the master issue.)* Master Issue: #12221 ### Motivation There are three way to create new ledger when one ledger is full. first: after add last entry for full ledger, it will handle create ledger processing. second: check ledger is or not full, when ledger is full and appendingAddEntries is not empty, it will handle create ledger processing. third: check ledger is or not full, when ledger is full, it will handle create ledger processing. So we need check it is or not creating or has created when concurrent create new ledger. avoid to create three new ledgers one time.
- Loading branch information