Skip to content

Commit

Permalink
scripts: github release; inventory
Browse files Browse the repository at this point in the history
* inventory: fix typo updating designated-target assignment

Signed-off-by: Alex Aizman <[email protected]>
  • Loading branch information
alex-aizman committed May 28, 2024
1 parent b6a5f25 commit aa256af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions ais/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2304,15 +2304,18 @@ func (p *proxy) lsObjsR(bck *meta.Bck, lsmsg *apc.LsoMsg, hdr http.Header, smap
return nil, cmn.NewErrUnsupp("list (via bucket inventory) non-S3 bucket", bck.Cname(""))
}
if lsmsg.ContinuationToken == "" /*first page*/ {
timeout = config.Client.TimeoutLong.D()

// override _lsofc selection (see above)
_, objName := s3.InvPrefObjname(bck.Bucket(), hdr.Get(apc.HdrInvName), hdr.Get(apc.HdrInvID))
tsi, err := smap.HrwName2T(bck.MakeUname(objName))
var (
err error
_, objName = s3.InvPrefObjname(bck.Bucket(), hdr.Get(apc.HdrInvName), hdr.Get(apc.HdrInvID))
)
tsi, err = smap.HrwName2T(bck.MakeUname(objName))
if err != nil {
return nil, err
}
lsmsg.SID = tsi.ID()

timeout = config.Client.TimeoutLong.D()
}
}
args.req = cmn.HreqArgs{
Expand Down
2 changes: 1 addition & 1 deletion scripts/github_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ GITHUB_RELEASE_ID=$(curl -H "Authorization: token ${GITHUB_OAUTH_TOKEN}" "https
os="linux"
arch="amd64"
echo "Building binaries"
pushd ../../
pushd ../
make cli
make aisloader
make authn
Expand Down

0 comments on commit aa256af

Please sign in to comment.