@@ -319,8 +319,8 @@ func NewLevelDBDatabase(file string, cache int, handles int, namespace string, r
319
319
320
320
// NewPebbleDBDatabase creates a persistent key-value database without a freezer
321
321
// moving immutable chain segments into cold storage.
322
- func NewPebbleDBDatabase (file string , cache int , handles int , namespace string , readonly , ephemeral bool ) (ethdb.Database , error ) {
323
- db , err := pebble .New (file , cache , handles , namespace , readonly , ephemeral )
322
+ func NewPebbleDBDatabase (file string , cache int , handles int , namespace string , readonly bool ) (ethdb.Database , error ) {
323
+ db , err := pebble .New (file , cache , handles , namespace , readonly )
324
324
if err != nil {
325
325
return nil , err
326
326
}
@@ -358,9 +358,6 @@ type OpenOptions struct {
358
358
Cache int // the capacity(in megabytes) of the data caching
359
359
Handles int // number of files to be open simultaneously
360
360
ReadOnly bool
361
- // Ephemeral means that filesystem sync operations should be avoided: data integrity in the face of
362
- // a crash is not important. This option should typically be used in tests.
363
- Ephemeral bool
364
361
}
365
362
366
363
// openKeyValueDatabase opens a disk-based key-value database, e.g. leveldb or pebble.
@@ -382,15 +379,15 @@ func openKeyValueDatabase(o OpenOptions) (ethdb.Database, error) {
382
379
}
383
380
if o .Type == dbPebble || existingDb == dbPebble {
384
381
log .Info ("Using pebble as the backing database" )
385
- return NewPebbleDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly , o . Ephemeral )
382
+ return NewPebbleDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly )
386
383
}
387
384
if o .Type == dbLeveldb || existingDb == dbLeveldb {
388
385
log .Info ("Using leveldb as the backing database" )
389
386
return NewLevelDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly )
390
387
}
391
388
// No pre-existing database, no user-requested one either. Default to Pebble.
392
389
log .Info ("Defaulting to pebble as the backing database" )
393
- return NewPebbleDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly , o . Ephemeral )
390
+ return NewPebbleDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly )
394
391
}
395
392
396
393
// Open opens both a disk-based key-value database such as leveldb or pebble, but also
0 commit comments