channeldb: add freelist sync option modifier

This commit is contained in:
Wilmer Paulino committed 2019-10-04 12:19:41 -04:00
1 parent 194a9dea81
commit fa96450db8
2 files changed
+14 -1

No files matched your search

+1 -1
View File
@@ -85,7 +85,7 @@ func Open(dbPath string, modifiers ...OptionModifier) (*DB, error) {
// Specify bbolt freelist options to reduce heap pressure in case the
// freelist grows to be very large.
options := &bbolt.Options{
NoFreelistSync: true,
NoFreelistSync: opts.NoFreelistSync,
FreelistType: bbolt.FreelistMapType,
}