facebook / rocksdb

A library that provides an embeddable, persistent key-value store for fast storage.
http://rocksdb.org
GNU General Public License v2.0
27.85k stars 6.2k forks source link

Fix static initialization error on opening an instance. #12783

Closed henriqueaklein closed 2 weeks ago

henriqueaklein commented 2 weeks ago

When opening a rocksdb instance in a static object the static members or global variables that don't have "constexpr" aren't guaranteed to be initialized before said object.

Implemented constexpr when possible and wrapped around static members with Getter methods.