Skip to content

Commit 109db5b

Browse files
committed
[FAB-9854] Fix compilation error
This CR fixes a compilation error in fabric that got created due to a race in conflicting merges. Change-Id: I97162b9fdb0643b9e6c875b6bacbef1683a20c7e Signed-off-by: manish <manish.sethi@gmail.com>
1 parent 6f4c23b commit 109db5b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

core/transientstore/store.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ import (
1010
"errors"
1111

1212
"github.com/golang/protobuf/proto"
13-
"github.com/hyperledger/fabric/protos/ledger/rwset"
14-
"github.com/hyperledger/fabric/protos/transientstore"
15-
1613
"github.com/hyperledger/fabric/common/flogging"
1714
"github.com/hyperledger/fabric/common/ledger/util/leveldbhelper"
1815
"github.com/hyperledger/fabric/common/util"
1916
"github.com/hyperledger/fabric/core/ledger"
17+
"github.com/hyperledger/fabric/protos/ledger/rwset"
18+
"github.com/hyperledger/fabric/protos/transientstore"
2019
"github.com/syndtr/goleveldb/leveldb/iterator"
2120
)
2221

@@ -404,13 +403,13 @@ func (scanner *RwsetScanner) NextWithConfig() (*EndorserPvtSimulationResultsWith
404403
if err := proto.Unmarshal(dbVal[1:], txPvtRWSetWithConfig); err != nil {
405404
return nil, err
406405
}
407-
filteredTxPvtRWSet = pvtdatastorage.TrimPvtWSet(txPvtRWSetWithConfig.GetPvtRwset(), scanner.filter)
406+
filteredTxPvtRWSet = trimPvtWSet(txPvtRWSetWithConfig.GetPvtRwset(), scanner.filter)
408407
} else {
409408
// old proto, i.e., TxPvtReadWriteSet
410409
if err := proto.Unmarshal(dbVal, txPvtRWSet); err != nil {
411410
return nil, err
412411
}
413-
filteredTxPvtRWSet = pvtdatastorage.TrimPvtWSet(txPvtRWSet, scanner.filter)
412+
filteredTxPvtRWSet = trimPvtWSet(txPvtRWSet, scanner.filter)
414413
}
415414

416415
txPvtRWSetWithConfig.PvtRwset = filteredTxPvtRWSet

0 commit comments

Comments
 (0)