Merge pull request #6748 from LK4D4/increase_max_patricia_prefix

Increase max patricia prefix
This commit is contained in:
Tibor Vass
2014-07-01 19:03:30 -04:00
5 changed files with 22 additions and 18 deletions
+6
View File
@@ -13,6 +13,12 @@ var (
ErrNoID = errors.New("prefix can't be empty")
)
func init() {
// Change patricia max prefix per node length,
// because our len(ID) always 64
patricia.MaxPrefixPerNode = 64
}
// TruncIndex allows the retrieval of string identifiers by any of their unique prefixes.
// This is used to retrieve image and container IDs by more convenient shorthand prefixes.
type TruncIndex struct {