Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed Jan 22, 2025
1 parent 439b4a3 commit d1ef8d4
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function collectBucketMetricsAndUpdateBucketCapacityInfo(mongoClient, log, callb
}),
(storageMetricDoc, nxt) => {
let bucketStorageUsed = BigInt(-1);
console.log('storageMetricDoc', storageMetricDoc);
if (isValidBucketStorageMetrics(storageMetricDoc)) {
console.log(' here in the isValidBucketStorageMetrics');
// Do not count the objects in cold for SOSAPI
Expand All @@ -88,7 +89,9 @@ function collectBucketMetricsAndUpdateBucketCapacityInfo(mongoClient, log, callb

let available = BigInt(-1);
let capacity = BigInt(-1);
if (isValidCapacityValue(Capacity)) { // is Capacity value is valid
if (isValidCapacityValue(Capacity)) {
console.log('we are in the valid capacity value');
// is Capacity value is valid
capacity = Capacity;
// if bucket storage used is valid and capacity is bigger than used
if (bucketStorageUsed !== BigInt(-1) && (capacity - bucketStorageUsed) >= BigInt(0)) {
Expand Down

0 comments on commit d1ef8d4

Please sign in to comment.