@@ -319,8 +319,8 @@ func NewLevelDBDatabase(file string, cache int, handles int, namespace string, r
319319
320320// NewPebbleDBDatabase creates a persistent key-value database without a freezer
321321// 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 )
324324 if err != nil {
325325 return nil , err
326326 }
@@ -358,9 +358,6 @@ type OpenOptions struct {
358358 Cache int // the capacity(in megabytes) of the data caching
359359 Handles int // number of files to be open simultaneously
360360 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
364361}
365362
366363// openKeyValueDatabase opens a disk-based key-value database, e.g. leveldb or pebble.
@@ -382,15 +379,15 @@ func openKeyValueDatabase(o OpenOptions) (ethdb.Database, error) {
382379 }
383380 if o .Type == dbPebble || existingDb == dbPebble {
384381 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 )
386383 }
387384 if o .Type == dbLeveldb || existingDb == dbLeveldb {
388385 log .Info ("Using leveldb as the backing database" )
389386 return NewLevelDBDatabase (o .Directory , o .Cache , o .Handles , o .Namespace , o .ReadOnly )
390387 }
391388 // No pre-existing database, no user-requested one either. Default to Pebble.
392389 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 )
394391}
395392
396393// Open opens both a disk-based key-value database such as leveldb or pebble, but also
0 commit comments