Skip to content

Commit

Permalink
Merge pull request #657 from anyproto/go-2384-update-badger
Browse files Browse the repository at this point in the history
GO-2384 update badger to v4
  • Loading branch information
requilence authored Nov 23, 2023
2 parents 3db5e11 + f502c5b commit 7ede21a
Show file tree
Hide file tree
Showing 34 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion core/filestorage/fileservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/anyproto/any-sync/commonfile/fileproto"
"github.com/anyproto/any-sync/commonspace/spacestorage"
"github.com/anyproto/any-sync/net/rpc/server"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion core/filestorage/filesync/filesyncstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"time"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"go.uber.org/zap"

"github.com/anyproto/anytype-heart/util/badgerhelper"
Expand Down
2 changes: 1 addition & 1 deletion core/filestorage/filesync/filesyncstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion core/filestorage/filesync/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/anyproto/any-sync/commonfile/fileproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/ipfs/go-cid"
ipld "github.com/ipfs/go-ipld-format"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion core/filestorage/proxystore.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"io"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
dshelp "github.com/ipfs/boxo/datastore/dshelp"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
Expand Down
2 changes: 1 addition & 1 deletion core/filestorage/proxystore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
blocks "github.com/ipfs/go-block-format"
"github.com/ipfs/go-cid"
format "github.com/ipfs/go-ipld-format"
Expand Down
2 changes: 1 addition & 1 deletion core/indexer/reindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/anyproto/any-sync/util/slice"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/globalsign/mgo/bson"
"go.uber.org/zap"

Expand Down
2 changes: 1 addition & 1 deletion core/syncstatus/file_watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"github.com/anyproto/any-sync/commonspace/syncstatus"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"go.uber.org/zap"

"github.com/anyproto/anytype-heart/core/domain"
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/cheggaaa/mb/v3 v3.0.2
github.com/dave/jennifer v1.7.0
github.com/davecgh/go-spew v1.1.1
github.com/dgraph-io/badger/v3 v3.2103.5
github.com/dgraph-io/badger/v4 v4.2.0
github.com/dgraph-io/ristretto v0.1.1
github.com/dgtony/collections v0.1.6
github.com/dhowden/tag v0.0.0-20201120070457-d52dcb253c63
Expand All @@ -31,6 +31,7 @@ require (
github.com/gogo/status v1.1.1
github.com/golang-jwt/jwt v3.2.2+incompatible
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
github.com/golang/mock v1.6.0
github.com/golang/snappy v0.0.4
github.com/google/uuid v1.4.0
github.com/gosimple/slug v1.13.1
Expand Down
9 changes: 5 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzA
github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4=
github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU=
github.com/dgraph-io/badger/v3 v3.2103.5 h1:ylPa6qzbjYRQMU6jokoj4wzcaweHylt//CH0AKt0akg=
github.com/dgraph-io/badger/v3 v3.2103.5/go.mod h1:4MPiseMeDQ3FNCYwRbbcBOGJLf5jsE0PPFzRiKjtcdw=
github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs=
github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak=
github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E=
github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8=
github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA=
Expand Down Expand Up @@ -403,6 +403,8 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt
github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw=
github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4=
github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc=
github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0=
github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
Expand All @@ -422,7 +424,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
Expand Down Expand Up @@ -723,7 +724,6 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4=
github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs=
github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg=
github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4=
github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE=
github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
Expand Down Expand Up @@ -1744,6 +1744,7 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0=
golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
Expand Down
4 changes: 2 additions & 2 deletions pkg/lib/datastore/clientds/clientds.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

"github.com/anyproto/any-sync/app"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v3/options"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v4/options"
"github.com/hashicorp/go-multierror"
ds "github.com/ipfs/go-datastore"
"go.uber.org/zap"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/datastore/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"

"github.com/anyproto/any-sync/app"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

const CName = "datastore"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/filestore/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/anyproto/any-sync/app"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/proto"
dsCtx "github.com/ipfs/go-datastore"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/filestore/files_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sync"
"testing"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/filestore/helpers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package filestore

import (
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/proto"
dsCtx "github.com/ipfs/go-datastore"

Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/badger_helpers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package objectstore

import (
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"

"github.com/anyproto/anytype-heart/util/badgerhelper"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/types"
ds "github.com/ipfs/go-datastore"
"github.com/samber/lo"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/fixture.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/anyproto/any-sync/app"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/types"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/anyproto/any-sync/app"
"github.com/anyproto/any-sync/coordinator/coordinatorproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/ristretto"
"github.com/gogo/protobuf/proto"
"github.com/gogo/protobuf/types"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sort"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"

"github.com/anyproto/anytype-heart/pkg/lib/bundle"
"github.com/anyproto/anytype-heart/pkg/lib/database"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/objectstore/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package objectstore
import (
"fmt"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/proto"
"github.com/gogo/protobuf/types"

Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/stores.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"strings"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/dgtony/collections/polymorph"
"github.com/dgtony/collections/slices"
dsCtx "github.com/ipfs/go-datastore"
Expand Down
2 changes: 1 addition & 1 deletion pkg/lib/localstore/stores_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"testing"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/clientserver/clientserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/anyproto/any-sync/app/logger"
"github.com/anyproto/any-sync/net/transport"
"github.com/anyproto/any-sync/net/transport/quic"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"go.uber.org/zap"

"github.com/anyproto/anytype-heart/pkg/lib/datastore"
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/clientserver/portstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package clientserver
import (
"encoding/binary"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

const portKey = "drpc/server/port"
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/helpers.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package storage

import (
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

func hasDB(db *badger.DB, key []byte) bool {
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/liststorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/anyproto/any-sync/commonspace/object/acl/liststorage"
"github.com/anyproto/any-sync/consensus/consensusproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

var ErrIncorrectKey = errors.New("key format is incorrect")
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/liststorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/anyproto/any-sync/commonspace/object/acl/liststorage"
"github.com/anyproto/any-sync/consensus/consensusproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/spacestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
"github.com/anyproto/any-sync/commonspace/spacestorage"
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

type spaceStorage struct {
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/storageservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/anyproto/any-sync/app"
"github.com/anyproto/any-sync/commonspace/spacestorage"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"golang.org/x/exp/slices"

"github.com/anyproto/anytype-heart/pkg/lib/datastore"
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/treestorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
"github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
)

type treeStorage struct {
Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/storage/treestorage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
"github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion space/spacecore/typeprovider/typeprovider.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/anyproto/any-sync/app"
"github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto"
"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/globalsign/mgo/bson"
"github.com/gogo/protobuf/proto"
"github.com/ipfs/go-cid"
Expand Down
2 changes: 1 addition & 1 deletion util/badgerhelper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"fmt"

"github.com/dgraph-io/badger/v3"
"github.com/dgraph-io/badger/v4"
"github.com/gogo/protobuf/proto"
)

Expand Down

0 comments on commit 7ede21a

Please sign in to comment.