This ensures that the index has the proper size and is not missing any
entries.
}
// Sanity check
- if indexOrig.Len() != indexId.Len() ||
+ if len(grs)*8 != indexOrig.Len() ||
+ indexOrig.Len() != indexId.Len() ||
indexId.Len() != indexName.Len() {
return fmt.Errorf("indexes have inconsistent length")
}
}
// Sanity check
- if indexOrig.Len() != indexId.Len() ||
+ if len(pws)*8 != indexOrig.Len() ||
+ indexOrig.Len() != indexId.Len() ||
indexId.Len() != indexName.Len() {
return fmt.Errorf("indexes have inconsistent length")
}