Txn is an in memory database transaction
| 33 | |
| 34 | // Txn is an in memory database transaction |
| 35 | type Txn struct { |
| 36 | reader TxnReaderI // memory store to Read() from |
| 37 | writer TxnWriterI // memory store to Flush() to |
| 38 | prefix []byte // prefix for keys in this txn |
| 39 | state bool // whether the flush should go to the HSS and LSS |
| 40 | sort bool // whether to sort the keys in the txn; used for iteration |
| 41 | writeVersion uint64 // the version to commit the data to |
| 42 | seek bool // whether to use seek or linear iteration (required for pebbleDB implementation) |
| 43 | txn *txn // the internal structure maintaining the write operations |
| 44 | } |
| 45 | |
| 46 | // txn internal structure maintains the write operations sorted lexicographically by keys |
| 47 | type txn struct { |
nothing calls this directly
no outgoing calls
no test coverage detected