MySQLOnRocksDB/mysql-5.6
forked from facebook/mysql-5.6

Loading…
Possible memory leak in RDBSE_KEYDEF::setup #110
Closed
spetrunia opened this Issue
· 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code there has this comment:
The suspicion is true. RDBSE_KEYDEF::setup() is called from ha_rocksdb::open(). Calls to that function are not protected by any SQL-layer mutex.
One can apply this patch:
and then run this testcase
and it produces a memory leak. Under valgrind, the leak is visible like this: