Skip to content

Commit

Permalink
insert into cache on reads too
Browse files Browse the repository at this point in the history
Change-Id: Id00000007f84d7de38391d240b94068587588764
  • Loading branch information
edmundnoble committed Jan 17, 2025
1 parent 7c0eb95 commit 17a28e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Chainweb/Pact5/Backend/ChainwebPactDb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,8 @@ doReadRow mlim d k = do
Pact.DModules ->
BlockHandler $ lift $ lift
$ Pact.chargeGasM (Pact.GModuleOp (Pact.MOpLoadModule (BS.length encodedValue)))
Pact.DUserTables {} -> do
bsPendingTx . _Just . _1 . pendingWrites %= InMem.insert d k (InMem.ReadEntry encodedValue decodedValue)

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, macos-latest, true)

Not in scope: ‘InMem.insert’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, macos-latest, true)

Not in scope: data constructor ‘InMem.ReadEntry’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, ubuntu-22.04, false)

Not in scope: ‘InMem.insert’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, ubuntu-22.04, false)

Not in scope: data constructor ‘InMem.ReadEntry’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.10.1, 3.12, ubuntu-22.04, false)

Not in scope: ‘InMem.insert’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.10.1, 3.12, ubuntu-22.04, false)

Not in scope: data constructor ‘InMem.ReadEntry’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.6.6, 3.12, ubuntu-22.04, false)

Not in scope: ‘InMem.insert’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.6.6, 3.12, ubuntu-22.04, false)

Not in scope: data constructor ‘InMem.ReadEntry’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, ubuntu-22.04, true)

Not in scope: ‘InMem.insert’

Check failure on line 376 in src/Chainweb/Pact5/Backend/ChainwebPactDb.hs

View workflow job for this annotation

GitHub Actions / Build (9.8.2, 3.12, ubuntu-22.04, true)

Not in scope: data constructor ‘InMem.ReadEntry’
_ -> return ()
return (Just decodedValue)
where
Expand Down

0 comments on commit 17a28e9

Please sign in to comment.