forked from hyperledger/fabric
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LEDGER] merge queryHelper with the queryExecutor (hyperledger#1097)
In lockbasedtxmgr, we have a lockBasedQueryExecutor and a lockBasedTxSimulator struct. The lockBasedTxSimulator implements mainly SetXXX() APIs while lockBasedQueryExecutor implements GetXXX() APIs. As the transaction simulation also involves query, the lockBasedTxSimulator encapsulate lockBasedQueryExecutor. Only in the lockBasedTxSimulator, we collect readSet while using GetXXX() and writeSet while using SetXXX(). However, when we use lockBasedQueryExecutor alone, we don't collect readSet. Currently, we have an unnecessary indirection with QueryHelper and it makes code readability a bit hard. Hence, we merge the QueryHelper with the lockBasedQueryExecutor itself and do some renaming of files/structs too. Signed-off-by: senthil <cendhu@gmail.com>
- Loading branch information
Showing
7 changed files
with
249 additions
and
306 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 0 additions & 108 deletions
108
core/ledger/kvledger/txmgmt/txmgr/lockbasedtxmgr/lockbased_query_executer.go
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.