()
| 132 | } |
| 133 | |
| 134 | func (tx *Tx) commitAndSend() (func() error, error) { |
| 135 | req, err := tx.db.sendToWriteCh(tx) |
| 136 | if err != nil { |
| 137 | return nil, err |
| 138 | } |
| 139 | ret := func() error { |
| 140 | err := req.Wait() |
| 141 | return err |
| 142 | } |
| 143 | |
| 144 | return ret, nil |
| 145 | } |
| 146 | |
| 147 | func (tx *Tx) checkSize() error { |
| 148 | count := tx.pendingWrites.size |
no test coverage detected