Merge pull request #3558 from sfc-gh-anoyes/anoyes/remove-redundant-cast

Remove redundant cast
This commit is contained in:
Meng Xu 2020-07-28 17:01:48 -07:00 committed by GitHub
commit 35ebdec9d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -812,7 +812,7 @@ ACTOR Future<Void> commitBatch(
int currentBatchMemBytesCount)
{
//WARNING: this code is run at a high priority (until the first delay(0)), so it needs to do as little work as possible
state std::vector<CommitTransactionRequest> trs(std::move(*(const_cast<std::vector<CommitTransactionRequest>*>(pTrs))));
state std::vector<CommitTransactionRequest> trs(std::move(*pTrs));
state int64_t localBatchNumber = ++self->localCommitBatchesStarted;
state LogPushData toCommit(self->logSystem);
state double t1 = now();