| 16 | } |
| 17 | |
| 18 | type shared struct { |
| 19 | Interface |
| 20 | |
| 21 | readonlyTXIDs []common.Txid // all readonly transaction IDs. |
| 22 | allocs map[common.Pgid]common.Txid // mapping of Txid that allocated a pgid. |
| 23 | cache map[common.Pgid]struct{} // fast lookup of all free and pending page ids. |
| 24 | pending map[common.Txid]*txPending // mapping of soon-to-be free page ids by tx. |
| 25 | } |
| 26 | |
| 27 | func newShared() *shared { |
| 28 | return &shared{ |
nothing calls this directly
no outgoing calls
no test coverage detected