Skip to content

Commit

Permalink
Add @jsdoc for getBucketInfos
Browse files Browse the repository at this point in the history
Issue: ARSN-447
  • Loading branch information
francoisferrand committed Nov 28, 2024
1 parent f277590 commit 48b9b4f
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions lib/storage/metadata/mongoclient/MongoClientInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2114,9 +2114,18 @@ class MongoClientInterface {
return name.startsWith('system.');
}

/*
* get bucket related information for count items, used by cloudserver
* and s3utils
/**
* @typedef BucketInfos
* @property { int } bucketCount - number of buckets
* @property { BucketInfo[] } bucketInfos - array of bucket metadata
*/

/**
* Get bucket related information for count items, used by cloudserver
* and s3utils.
* @param { Logger } log - Werelogs logger
* @param { function(error, BucketInfos): void } cb - callback
* @return { undefined }
*/
getBucketInfos(log, cb) {
let bucketCount = 0;
Expand Down

0 comments on commit 48b9b4f

Please sign in to comment.