Skip to content

fix: Allow num_buckets to be equal as min_bucket#56902

Open
Koc wants to merge 1 commit intomasterfrom
bugfix/allow-max-buckets-to-be-equal-to-num-buckets
Open

fix: Allow num_buckets to be equal as min_bucket#56902
Koc wants to merge 1 commit intomasterfrom
bugfix/allow-max-buckets-to-be-equal-to-num-buckets

Conversation

@Koc
Copy link
Contributor

@Koc Koc commented Dec 7, 2025

Summary

We have next configuration for Multibucket Object Store

'objectstore_multibucket' => [
        'class' => 'Object\\Storage\\Backend\\Class',
        'arguments' => [
                'min_bucket' => 100,
                'num_buckets' => 100,
        ],
],

This needed to separate system files from a user files. So, system files will be stored in nextcloud-0 and user files in nextcloud-100. But the problem is such configuration not works as expected due to division by zero. This PR aims to fix that.

Checklist

@Koc Koc requested a review from a team as a code owner December 7, 2025 22:08
@Koc Koc requested review from ArtificialOwl and icewind1991 and removed request for a team December 7, 2025 22:08
@Koc Koc added the bug label Dec 7, 2025
@Koc Koc requested review from CarlSchwan and salmart-dev December 7, 2025 22:08
@Koc Koc force-pushed the bugfix/allow-max-buckets-to-be-equal-to-num-buckets branch 2 times, most recently from f64aa95 to 7848dfb Compare December 7, 2025 22:19
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
@Koc Koc force-pushed the bugfix/allow-max-buckets-to-be-equal-to-num-buckets branch from 7848dfb to 8577bc5 Compare February 15, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant