]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
env_mirror: instruct EnvMirror whether mirrored Envs should be destroyed env-mirror-leaks
authorSage Weil <sage@redhat.com>
Wed, 28 Sep 2016 17:55:50 +0000 (13:55 -0400)
committerSage Weil <sage@redhat.com>
Wed, 28 Sep 2016 17:55:50 +0000 (13:55 -0400)
commitbf09c048f3449135339dd52d7bd16820b1a51389
tree01654ebe64481840fdd68d210f189ed0c04a8783
parent49a41f3e22918b78c453aed6b960dbc8fbf6c2aa
env_mirror: instruct EnvMirror whether mirrored Envs should be destroyed

The lifecycle rules for Env are frustrating and undocumented.  Notably,
Env::Default() should *not* be freed, but any Env instances we created
should be.

Explicitly instruct EnvMirror whether to clean up child Env instances.
Default to false so that we do not affect existing callers.

Signed-off-by: Sage Weil <sage@redhat.com>
include/rocksdb/utilities/env_mirror.h