Skip to content

Commit

Permalink
Fix: disable hash_pathing_fallback by default (#1019)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jan 13, 2025
1 parent afbe1f5 commit be650cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/setup-and-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ Storage settings:
* ``max_upload_size`` (integer) - Maximum upload size in bytes. Keep in mind that this value refers to whole upload request (``Content-Length`` from request header), so the maximum file size is smaller than that by +/- 500B (because of additional payload with metadata). Default is ``None``, which means there is no limit.
* ``storage_provider`` (disk or s3) - If you want to use S3-compatible object storage instead of local file system, set this option to ``s3``. Default is ``disk``.
* ``hash_pathing`` (0 or 1) - Should we break up the uploads into different folders. If you use S3-compatible storage other than MinIO, recommended option is ``0`` (default: ``1``).
* ``hash_pathing_fallback`` (0 or 1) - If set to 1, MWDB will try to reach a file contents for reading using both naming schemes (with and without hash_pathing). It's useful during migration from one scheme to another. Default is ``1``.
* ``hash_pathing_fallback`` (0 or 1) - If set to 1, MWDB will try to reach a file contents for reading using both naming schemes (with and without hash_pathing). It's useful during migration from one scheme to another. Default is ``0``.
* ``s3_storage_endpoint`` (string) - S3 API endpoint for object storage. Required if you use S3-compatible storage.
* ``s3_storage_access_key`` (string) - S3 API access key for object storage. Required if you use S3-compatible storage.
* ``s3_storage_secret_key`` (string) - S3 API secret key for object storage. Required if you use S3-compatible storage.
Expand Down
2 changes: 1 addition & 1 deletion mwdb/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class MWDBConfig(Config):
# Try to open file using opposite hash_pathing setting when MWDB
# fails to open file using current one. It's useful when you want to
# migrate from one scheme to another.
hash_pathing_fallback = key(cast=intbool, required=False, default=True)
hash_pathing_fallback = key(cast=intbool, required=False, default=False)
# S3 compatible storage endpoint
s3_storage_endpoint = key(cast=str, required=False)
# Use TLS with S3 storage
Expand Down

0 comments on commit be650cb

Please sign in to comment.