]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix incorrect Status::NoSpace() status check (#8504)
authorZhichao Cao <zhichao@fb.com>
Wed, 21 Jul 2021 01:08:55 +0000 (18:08 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 21 Jul 2021 01:09:51 +0000 (18:09 -0700)
commit87e82a41a98fbb89591b0599625235de0b60dafc
treedc1121706cd79c8ea96a7184f477b53504faf4dd
parent66ca5ac42744a5f240c56b675c4b590c538b3bd4
Fix incorrect Status::NoSpace() status check (#8504)

Summary:
If we want to check whether a Status s is NoSpace() or not, we should check the subcode instread of using s==Status::NoSpace(). Fix some of the incorrect check in the ErrorHandler.

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

Test Plan: make check

Reviewed By: anand1976

Differential Revision: D29601764

Pulled By: zhichao-cao

fbshipit-source-id: cdab56a827891c23746bba9cbb53f169fe35f086
db/error_handler.cc
file/sst_file_manager_impl.cc
utilities/fault_injection_env.h
utilities/fault_injection_fs.h