Commit 07b93e55 authored by gammazero's avatar gammazero

Remove badger2 profile

This is needed for the upcoming release since there is not yet an official badger2 release with the items needed for use by IPFS.
parent 2a9cf46d
...@@ -142,19 +142,6 @@ func badgerSpec() map[string]interface{} { ...@@ -142,19 +142,6 @@ func badgerSpec() map[string]interface{} {
} }
} }
func badger2Spec() map[string]interface{} {
return map[string]interface{}{
"type": "measure",
"prefix": "badger2.datastore",
"child": map[string]interface{}{
"type": "badger2ds",
"path": "badger2ds",
"syncWrites": false,
"truncate": true,
},
}
}
func flatfsSpec() map[string]interface{} { func flatfsSpec() map[string]interface{} {
return map[string]interface{}{ return map[string]interface{}{
"type": "mount", "type": "mount",
......
...@@ -152,27 +152,6 @@ This profile may only be applied when first initializing the node. ...@@ -152,27 +152,6 @@ This profile may only be applied when first initializing the node.
"badgerds": { "badgerds": {
Description: `Configures the node to use the badger datastore. Description: `Configures the node to use the badger datastore.
This is a fast datastore. Use this datastore if performance, especially
when adding many gigabytes of files, is critical. However:
* This datastore will not properly reclaim space when your datastore is
smaller than several gigabytes. If you run IPFS with '--enable-gc' (you have
enabled block-level garbage collection), you plan on storing very little data in
your IPFS node, and disk usage is more critical than performance, consider using
flatfs.
* This datastore uses up to several gigabytes of memory.
This profile may only be applied when first initializing the node.`,
InitOnly: true,
Transform: func(c *Config) error {
c.Datastore.Spec = badgerSpec()
return nil
},
},
"badger2ds": {
Description: `Configures the node to use the badger2 datastore.
This is the fastest datastore. Use this datastore if performance, especially This is the fastest datastore. Use this datastore if performance, especially
when adding many gigabytes of files, is critical. However: when adding many gigabytes of files, is critical. However:
...@@ -187,7 +166,7 @@ This profile may only be applied when first initializing the node.`, ...@@ -187,7 +166,7 @@ This profile may only be applied when first initializing the node.`,
InitOnly: true, InitOnly: true,
Transform: func(c *Config) error { Transform: func(c *Config) error {
c.Datastore.Spec = badger2Spec() c.Datastore.Spec = badgerSpec()
return nil return nil
}, },
}, },
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment