Skip to content

Commit

Permalink
Merge pull request #2756 from activeloopai/preserve_lock_settings
Browse files Browse the repository at this point in the history
Preserve lock settings in `get_dataset_with_zero_size_cache`
  • Loading branch information
nvoxland-al committed Feb 1, 2024
2 parents c1d52bc + 310280e commit e91a754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deeplake/util/remove_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def get_dataset_with_zero_size_cache(ds):
link_creds=ds.link_creds,
pad_tensors=ds._pad_tensors,
enabled_tensors=ds.enabled_tensors,
lock_timeout=ds._lock_timeout,
lock_enabled=ds._locking_enabled,
)
if ds.pending_commit_id != commit_id:
ds.checkout(commit_id)
Expand Down

0 comments on commit e91a754

Please sign in to comment.