storj/satellite/metainfo/metabase
Egon Elbre 7e72a231c2 satellite/metainfo/metabase: cast bucket_name to []byte
Currently our metabase assumption is that it may contain arbitrary
bucket names and endpoint applies the naming constraints as it sees fit.
However by passing bucket_name as TEXT pg and crdb automatically try to
convert it to []byte, which may or not may work as intended... or in
some cases not work at all.

Cast all bucket name arguments to []byte to make it work.

Change-Id: I44650f5c873010997398bb0163d7f56ff6d9b5cf
2021-03-02 13:22:49 +02:00
..
alias_test.go satellite/metainfo/metabase: add node alias table 2021-02-05 14:34:15 +02:00
alias.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
aliascache_test.go satellite/metainfo/metabase: refresh alias cache only once 2021-02-17 10:00:04 +00:00
aliascache.go satellite/metainfo/metabase: refresh alias cache only once 2021-02-17 10:00:04 +00:00
aliaspiece_test.go satellite/metainfo/metabase: add AliasPiece 2021-02-11 14:23:51 +02:00
aliaspiece.go satellite/metainfo/metabase: add AliasPiece 2021-02-11 14:23:51 +02:00
bench_test.go satellite/metainfo/metabase: avoid full table scan 2021-03-01 23:34:53 +02:00
commit_object_test.go satellite/metainfo/metabase: fix FixedSegmentSize for gapped parts 2021-01-25 13:30:56 +02:00
commit_object.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
commit_test.go satellite/metainfo/metabase: allow committing empty inline segments 2021-02-19 13:41:34 +00:00
commit.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
common_test.go satellite/metainfo/metabase: fix ParseSegmentKey to parse part numbers 2021-02-01 15:18:18 +02:00
common.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
consts_test.go satellite/metainfo/metabase: disable PlainSize validation 2021-01-07 14:14:20 +00:00
db_migrate_test.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
db_test.go satellite/metainfo/metabase: add benchmark 2021-01-25 14:59:24 +00:00
db.go satellite/metabase: Remove subquery on delete objects for CRDB 2021-02-19 16:51:01 +00:00
delete_bucket_test.go satellite/metainfo/metabase: fix segment index in tests 2021-01-25 13:27:24 +02:00
delete_bucket.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
delete_expired_test.go satellite/metainfo/metabase: DeleteExpiredObjects 2020-11-13 15:31:31 +02:00
delete_expired.go satellite/metainfo/metabase: DeleteExpiredObjects 2020-11-13 15:31:31 +02:00
delete_test.go satellite/metainfo/metabase: GetSegmentByLocation 2021-02-01 21:52:12 +02:00
delete.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
encoding.go satellite/metainfo/metabase: move metainfo PoC into storj repo 2020-10-29 09:44:55 +01:00
get_test.go satellite/metainfo/metabase: GetSegmentByLocation 2021-02-01 21:52:12 +02:00
get.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
iterator_test.go satellite/metainfo/metabase: use key with prefix as the next cursor 2021-02-28 22:05:42 +02:00
iterator_util_test.go satellite/metainfo/metabase: fix iterator boundaries 2021-02-28 21:19:51 +02:00
iterator.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
list_segments_test.go satellite/metainfo: select segments in batches for metainfo loop 2021-02-23 11:38:44 +00:00
list_segments.go satellite/metainfo: select segments in batches for metainfo loop 2021-02-23 11:38:44 +00:00
list.go metainfo/metabase: iterate through pending objects by key 2021-02-03 11:44:05 +01:00
loop_test.go satellite/metainfo/metabase: rename FullIterateObjects method to IterateLoopObjects 2021-03-01 17:19:05 +01:00
loop.go satellite/metainfo/metabase: cast bucket_name to []byte 2021-03-02 13:22:49 +02:00
raw.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
test_test.go satellite/metainfo/metabase: rename FullIterateObjects method to IterateLoopObjects 2021-03-01 17:19:05 +01:00
update_test.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
update.go satellite/metainfo/metabase: use alias pieces in segments table 2021-02-11 16:40:37 +02:00
util.go satellite/metainfo/metabase: commit object without proofs 2020-11-09 15:18:07 +00:00