bmatsuo / lmdb-go

Bindings for the LMDB C library
BSD 3-Clause "New" or "Revised" License
157 stars 59 forks source link

lmdbsync: changes to MapResizedHandler delays and defaults #55

Closed bmatsuo closed 8 years ago

bmatsuo commented 8 years ago

Fixes #54

A DelayFunc type is defined to describe the interface for MapResizedHandler. The delay function is called before each call to Env.SetMapSize including the first, when its argument is zero. This is an incompatible change for lmdbsync.

Additionally, the default values for MapResizedHandler arguments have been renamed so that they more clearly reflect their purpose. Their previous names made no sense to users as they corresponded to field names for unexported structs.