Skip to content

Commit

Permalink
*: move "mvcc" to "internal/mvcc"
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
  • Loading branch information
gyuho committed Jan 26, 2018
1 parent 349a377 commit 80d1594
Show file tree
Hide file tree
Showing 100 changed files with 99 additions and 101 deletions.
2 changes: 1 addition & 1 deletion auth/range_perm_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ package auth

import (
"github.com/coreos/etcd/auth/authpb"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/pkg/adt"
)

Expand Down
2 changes: 1 addition & 1 deletion auth/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/coreos/etcd/auth/authpb"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc/backend"

"github.com/coreos/pkg/capnslog"
"golang.org/x/crypto/bcrypt"
Expand Down
2 changes: 1 addition & 1 deletion auth/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

"github.com/coreos/etcd/auth/authpb"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc/backend"

"golang.org/x/crypto/bcrypt"
"google.golang.org/grpc/metadata"
Expand Down
2 changes: 1 addition & 1 deletion clientv3/concurrency/election.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion clientv3/concurrency/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

func waitDelete(ctx context.Context, client *v3.Client, key string, rev int64) error {
Expand Down
2 changes: 1 addition & 1 deletion clientv3/integration/kv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/testutil"

"google.golang.org/grpc"
Expand Down
4 changes: 2 additions & 2 deletions clientv3/integration/maintenance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/pkg/testutil"
)

Expand Down
2 changes: 1 addition & 1 deletion clientv3/integration/mirror_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

"github.com/coreos/etcd/clientv3/mirror"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/testutil"
)

Expand Down
2 changes: 1 addition & 1 deletion clientv3/integration/namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/namespace"
"github.com/coreos/etcd/integration"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/testutil"
)

Expand Down
2 changes: 1 addition & 1 deletion clientv3/integration/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/coreos/etcd/etcdserver/api/v3rpc"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/integration"
mvccpb "github.com/coreos/etcd/mvcc/mvccpb"
mvccpb "github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/testutil"

"google.golang.org/grpc"
Expand Down
2 changes: 1 addition & 1 deletion clientv3/leasing/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
v3pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

const revokeBackoff = 2 * time.Second
Expand Down
2 changes: 1 addition & 1 deletion clientv3/leasing/kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion clientv3/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

v3rpc "github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
mvccpb "github.com/coreos/etcd/mvcc/mvccpb"
mvccpb "github.com/coreos/etcd/internal/mvcc/mvccpb"

"google.golang.org/grpc"
"google.golang.org/grpc/codes"
Expand Down
2 changes: 1 addition & 1 deletion clientv3/watch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package clientv3
import (
"testing"

"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

func TestEvent(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/barrier.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"

v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

// Barrier creates a key in etcd to block processes, then deletes the key to
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"errors"

v3 "github.com/coreos/etcd/clientv3"
spb "github.com/coreos/etcd/mvcc/mvccpb"
spb "github.com/coreos/etcd/internal/mvcc/mvccpb"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/double_barrier.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

// DoubleBarrier blocks processes on Enter until an expected count enters, then
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/priority_queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"

v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

// PriorityQueue implements a multi-reader, multi-writer distributed queue.
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"

v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

// Queue implements a multi-reader, multi-writer distributed queue.
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/rwmutex.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

type RWMutex struct {
Expand Down
2 changes: 1 addition & 1 deletion contrib/recipes/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"context"

"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

// WaitEvents waits on a key until it observes the given events and returns the final one.
Expand Down
2 changes: 1 addition & 1 deletion e2e/etcd_corrupt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"time"

"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"

bolt "github.com/coreos/bbolt"
)
Expand Down
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/defrag_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"path/filepath"
"time"

"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/make_mirror_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/mirror"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc/mvccpb"

"github.com/spf13/cobra"
)
Expand Down
6 changes: 3 additions & 3 deletions etcdctl/ctlv3/command/migrate_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"github.com/coreos/etcd/etcdserver/api"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/etcdserver/membership"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/internal/raftsnap"
"github.com/coreos/etcd/internal/store"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/pbutil"
"github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/raft/raftpb"
Expand Down
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/printer_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
spb "github.com/coreos/etcd/mvcc/mvccpb"
spb "github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/snapshot"
)

Expand Down
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/printer_protobuf.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

v3 "github.com/coreos/etcd/clientv3"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
mvccpb "github.com/coreos/etcd/mvcc/mvccpb"
mvccpb "github.com/coreos/etcd/internal/mvcc/mvccpb"
)

type pbPrinter struct{ printer }
Expand Down
2 changes: 1 addition & 1 deletion etcdctl/ctlv3/command/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"regexp"

pb "github.com/coreos/etcd/mvcc/mvccpb"
pb "github.com/coreos/etcd/internal/mvcc/mvccpb"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v2v3/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/clientv3/concurrency"
etcdErr "github.com/coreos/etcd/error"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/internal/store"
"github.com/coreos/etcd/mvcc/mvccpb"
)

// store implements the Store interface for V2 using
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3election/v3electionpb/v3election.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions etcdserver/api/v3rpc/maintenance.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/raft"
"github.com/coreos/etcd/version"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3rpc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/etcdserver/membership"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/internal/mvcc"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/api/v3rpc/util_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"testing"

"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/internal/mvcc"

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
Expand Down
4 changes: 2 additions & 2 deletions etcdserver/api/v3rpc/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/coreos/etcd/etcdserver"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
)

type watchServer struct {
Expand Down
4 changes: 2 additions & 2 deletions etcdserver/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"github.com/coreos/etcd/auth"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/mvccpb"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/mvccpb"
"github.com/coreos/etcd/pkg/types"

"github.com/gogo/protobuf/proto"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/apply_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/coreos/etcd/auth"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/internal/mvcc"
)

type authApplierV3 struct {
Expand Down
4 changes: 2 additions & 2 deletions etcdserver/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"time"

"github.com/coreos/etcd/internal/lease"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/internal/raftsnap"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/raft/raftpb"
)

Expand Down
2 changes: 1 addition & 1 deletion etcdserver/corrupt.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/coreos/etcd/clientv3"
"github.com/coreos/etcd/etcdserver/api/v3rpc/rpctypes"
pb "github.com/coreos/etcd/etcdserver/etcdserverpb"
"github.com/coreos/etcd/mvcc"
"github.com/coreos/etcd/internal/mvcc"
"github.com/coreos/etcd/pkg/types"
)

Expand Down
2 changes: 1 addition & 1 deletion etcdserver/etcdserverpb/rpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion etcdserver/membership/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import (
"sync"
"time"

"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/internal/store"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/pkg/netutil"
"github.com/coreos/etcd/pkg/types"
"github.com/coreos/etcd/raft"
Expand Down
2 changes: 1 addition & 1 deletion etcdserver/membership/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"fmt"
"path"

"github.com/coreos/etcd/internal/mvcc/backend"
"github.com/coreos/etcd/internal/store"
"github.com/coreos/etcd/mvcc/backend"
"github.com/coreos/etcd/pkg/types"

"github.com/coreos/go-semver/semver"
Expand Down
Loading

0 comments on commit 80d1594

Please sign in to comment.