hypercore-storage 1.3.4 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -748,9 +748,9 @@ function isCorestoreStorage (s) {
748
748
  function createColumnFamily (db) {
749
749
  const col = new RocksDB.ColumnFamily(COLUMN_FAMILY, {
750
750
  // tuning! atm just the default tuning from rocks, TODO: tweak
751
- enableBlobFiles: false,
752
- minBlobSize: 0,
753
- blobFileSize: 0,
751
+ enableBlobFiles: true,
752
+ minBlobSize: 4096,
753
+ blobFileSize: 256 * 1024 * 1024,
754
754
  enableBlobGarbageCollection: true,
755
755
  tableBlockSize: 16384,
756
756
  tableCacheIndexAndFilterBlocks: true,
@@ -265,6 +265,7 @@ async function core (core, { version, dryRun = true, gc = true }) {
265
265
  const files = getFiles(path.join(core.store.path, 'cores', dk.slice(0, 2), dk.slice(2, 4), dk))
266
266
 
267
267
  if (head === null || head.length === 0) {
268
+ await commitCoreMigration(auth, core, version)
268
269
  if (gc) await runGC()
269
270
  return // no data
270
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hypercore-storage",
3
- "version": "1.3.4",
3
+ "version": "1.4.0",
4
4
  "main": "index.js",
5
5
  "files": [
6
6
  "index.js",