예제 #1
0
파일: shard.go 프로젝트: littleyang/vitess
func (wr *Wrangler) lockShard(ctx context.Context, keyspace, shard string, actionNode *actionnode.ActionNode) (lockPath string, err error) {
	return actionNode.LockShard(ctx, wr.ts, keyspace, shard)
}
예제 #2
0
파일: shard.go 프로젝트: afrolovskiy/vitess
func (wr *Wrangler) lockShard(ctx context.Context, keyspace, shard string, actionNode *actionnode.ActionNode) (lockPath string, err error) {
	ctx, cancel := context.WithTimeout(ctx, wr.lockTimeout)
	defer cancel()
	return actionNode.LockShard(ctx, wr.ts, keyspace, shard)
}
예제 #3
0
파일: shard.go 프로젝트: kingpro/vitess
func (wr *Wrangler) lockShard(keyspace, shard string, actionNode *actionnode.ActionNode) (lockPath string, err error) {
	return actionNode.LockShard(wr.ts, keyspace, shard, wr.lockTimeout, interrupted)
}