mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-11 00:37:52 +02:00
All three io_uring backends (iceber, giouring, raw) now require explicit build tags — no tag means standard-only. Each backend registers its name via IOUringImpl so startup logs show compiled implementation alongside requested/selected backend mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
13 lines
496 B
Go
13 lines
496 B
Go
//go:build !linux || (!iouring_iceber && !iouring_giouring && !iouring_raw)
|
|
|
|
package batchio
|
|
|
|
// NewIOUring returns ErrIOUringUnavailable when no io_uring backend is
|
|
// compiled in. On Linux, use one of these build tags to enable a backend:
|
|
// - iouring_iceber (iceber/iouring-go library)
|
|
// - iouring_giouring (pawelgaczynski/giouring library)
|
|
// - iouring_raw (raw syscall wrappers, zero deps)
|
|
func NewIOUring(ringSize uint) (BatchIO, error) {
|
|
return nil, ErrIOUringUnavailable
|
|
}
|