You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if cfg.Internal.UnixFSShardingSizeThreshold is set and
cfg.Import.UnixFSHAMTDirectorySizeThreshold is not, assign old value
to new field and print ERROR urging user to migrate
this way we wont break any existing CI etc
// TODO: avoid overriding this globally, see if we can extend Directory interface like Get/SetMaxLinks from https://github.com/ipfs/boxo/pull/906
419
-
uio.HAMTShardingSize=int(shardSingThresholdInt)
420
-
uio.DefaultShardWidth=int(shardMaxFanout)
421
-
422
411
// Migrate users of deprecated Experimental.ShardingEnabled flag
423
412
ifcfg.Experimental.ShardingEnabled {
424
-
logger.Fatal("The `Experimental.ShardingEnabled` field is no longer used, please remove it from the config.\n"+
425
-
"go-ipfs now automatically shards when directory block is bigger than `"+shardingThresholdString+"`.\n"+
426
-
"If you need to restore the old behavior (sharding everything) set `Import.UnixFSHAMTDirectorySizeThreshold` to `1B`.\n")
413
+
logger.Fatal("The `Experimental.ShardingEnabled` field is no longer used, please remove it from the config. Use Import.UnixFSHAMTDirectorySizeThreshold instead.")
0 commit comments