LocalBlock is a block stored in local storage. It can be searched and flushed to a remote backend, and permanently tracks the flushed time with a special file in the block.
| 21 | // LocalBlock is a block stored in local storage. It can be searched and flushed to a remote backend, and |
| 22 | // permanently tracks the flushed time with a special file in the block. |
| 23 | type LocalBlock struct { |
| 24 | common.BackendBlock |
| 25 | reader backend.Reader |
| 26 | writer backend.Writer |
| 27 | |
| 28 | flushedTime atomic.Int64 // protecting flushedTime because it's accessed concurrently |
| 29 | } |
| 30 | |
| 31 | var ( |
| 32 | _ common.Finder = (*LocalBlock)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected