Skip to content

Commit

Permalink
WIP: unit tests
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Lyubich <leonard@morphbits.io>
  • Loading branch information
cthulhu-rider committed Jan 20, 2025
1 parent 3bf58af commit c29b7e5
Show file tree
Hide file tree
Showing 2 changed files with 507 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/local_object_storage/metabase/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ var (
maxUint256Neg = new(big.Int).Neg(maxUint256)
)

// TODO: fill on Init
// TODO: system attributes
// TODO: fill on migration
// TODO: sort integers in buckets naturally
func putMetadata(tx *bbolt.Tx, cnr cid.ID, id oid.ID, ver version.Version, owner user.ID, typ object.Type, creationEpoch uint64,
payloadLen uint64, pldHash, pldHmmHash, splitID []byte, parentID, firstID oid.ID, attrs []object.Attribute) error {
mb, err := tx.CreateBucketIfNotExists(metaBucketKey(cnr))
Expand Down
Loading

0 comments on commit c29b7e5

Please sign in to comment.