mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-05 16:15:56 +00:00
This implements a fairly straightforward sanity-check for mutexes, implemented as a bitmapfilter at the fragment level, and with higher levels combining results. There's two endpoints, an internal endpoint which only checks the local node's shards, and an external one which forwards requests (using the internal endpoint) to all the other nodes. The internal endpoint does not do key translation, the external one does. The transmission format is a probably-inefficient JSON blob, and returns data separated per-shard so we don't have as much merging work to do. This introduces a horrifying monstrosity function which tries to sneakily corrupt mutex fields and which has to be exported (EWWWWW) but which is only present in _test code (!??!! THIS WORKS WHY). Also one typo fix in unrelated code caused by not wanting to keep fighting with gofmt about this. |
||
|---|---|---|
| .. | ||
| client.go | ||
| client_test.go | ||
| error.go | ||
| handler.go | ||
| handler_internal_test.go | ||
| handler_test.go | ||
| translator.go | ||
| translator_test.go | ||