Skip to content

Commit 3f56453

Browse files
committed
CLDSRV-776: Fix batchDelete route to handle raftSessionId parameter
The batchDelete route in routeBackbeat.js was not updated when Arsenal added the raftSessionId parameter to metadata.getBucket() callbacks in commit 184d37bdd (ARSN-533). Fixed by adding an intermediate callback that explicitly handles all 3 parameters but only passes the needed 2 to next()
1 parent 8b4f5bd commit 3f56453

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/routes/routeBackbeat.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,8 @@ function batchDelete(request, response, userInfo, log, callback) {
13161316
}
13171317

13181318
return async.waterfall([
1319-
next => metadata.getBucket(bucket, log, next),
1319+
// eslint-disable-next-line no-unused-vars
1320+
next => metadata.getBucket(bucket, log, (err, bucketMD, raftSessionId) => next(err, bucketMD)),
13201321
(bucketMD, next) => quotaUtils.validateQuotas(request, bucketMD, request.accountQuotas,
13211322
['objectDelete'], 'objectDelete', -contentLength, false, log, next),
13221323
], err => {

0 commit comments

Comments
 (0)