mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-16 15:49:50 +01:00
21 lines
366 B
Go
21 lines
366 B
Go
|
package themis
|
||
|
|
||
|
import "strings"
|
||
|
|
||
|
var (
|
||
|
PutFamilyName = []byte("#p")
|
||
|
DelFamilyName = []byte("#d")
|
||
|
LockFamilyName = []byte("L")
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
ThemisServiceName string = "ThemisService"
|
||
|
)
|
||
|
|
||
|
func isWrongRegionErr(err error) bool {
|
||
|
if err != nil {
|
||
|
return strings.Contains(err.Error(), "org.apache.hadoop.hbase.regionserver.WrongRegionException")
|
||
|
}
|
||
|
return false
|
||
|
}
|