]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix bug in Logger creation if dbname and db_log_dir are on different filesystem ...
authorAkanksha Mahajan <akankshamahajan@fb.com>
Fri, 1 Jul 2022 02:04:25 +0000 (19:04 -0700)
committerakankshamahajan <akankshamahajan@fb.com>
Fri, 1 Jul 2022 02:12:53 +0000 (19:12 -0700)
commitd74333c500208944e7f762e12befe273d0f43c56
tree511bb1be87bb96510913d481ee451631b893774d
parent57adbf0e9187331cb39bf5cdb5f5d67faeee5f63
Fix bug in Logger creation if dbname and db_log_dir are on different filesystem (#10292)

Summary:
If dbname and db_log_dir are at different filesystems (one
local and one remote), creation of dbname will fail because that path
doesn't exist wrt to db_log_dir.
This patch will ignore the error returned on creation of dbname. If they
are on same filesystem, db_log_dir creation will automatically return
the error in case there is any error in creation of dbname.

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

Test Plan: Existing unit tests

Reviewed By: riversand963

Differential Revision: D37567773

Pulled By: akankshamahajan15

fbshipit-source-id: 005d28c536208d4c126c8cb8e196d1d85b881100
HISTORY.md
logging/auto_roll_logger.cc