Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

527 B
Raw Blame
package foundationdb

import "fmt"

// FDB_VALUE_SIZE_LIMIT is Apple's documented maximum value size: 100,000
// bytes, not 100 KiB. A value over it is rejected by FoundationDB itself with
// error 2103, so the store checks it and names it.
const FDB_VALUE_SIZE_LIMIT = 100 * 1000

func errIfValueTooLarge(name string, value []byte) error {
	if len(value) > FDB_VALUE_SIZE_LIMIT {
		return fmt.Errorf("entry %s exceeds FoundationDB value size limit (%d > %d bytes)",
			name, len(value), FDB_VALUE_SIZE_LIMIT)
	}
	return nil
}