]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix an race condition during multiple DB opening (#8574)
authorJay Zhuang <zjay@fb.com>
Thu, 22 Jul 2021 20:41:48 +0000 (13:41 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Jul 2021 20:43:06 +0000 (13:43 -0700)
commitc4a503f3dfc297dadaf0912dbeb801bb1059b5eb
tree9f751aa9ccec2d18c7320fce667fd821eae1b0f4
parent84eef260de9c0dc0c7ace8e6f605a2b3efd71038
Fix an race condition during multiple DB opening (#8574)

Summary:
ObjectLibrary is shared between multiple DB instances, the
Register() could have race condition.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8574

Test Plan: pass the failed test

Reviewed By: ajkr

Differential Revision: D29855096

Pulled By: jay-zhuang

fbshipit-source-id: 541eed0bd495d2c963d858d81e7eabf1ba16153c
include/rocksdb/utilities/object_registry.h
utilities/object_registry.cc