示例#1
0
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
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)
}