]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: abort if rocksdb EIO, don't return incorrect result
authorHaomai Wang <haomai@xsky.com>
Fri, 23 Jun 2017 01:36:20 +0000 (09:36 +0800)
committerJosh Durgin <jdurgin@redhat.com>
Wed, 4 Apr 2018 14:12:43 +0000 (10:12 -0400)
commit7eaa0a1a7076177e5f51fa857a55ab3cd3aed393
treec3ec4249b0fb6df41710dff7b7aee5d404c29c2a
parent29eed007ae67e2d56d99f8d00b1dc167980e654f
kv/RocksDBStore: abort if rocksdb EIO, don't return incorrect result

If the underlying disk is missing, the current logic won't check the actual
reason why Get/Set failed, it will result to client get a empty key/value
pair which is not expected. The correct logic should be abort
right now. Otherwise, it will leads to undefined behavior.

Signed-off-by: Haomai Wang <haomai@xsky.com>
(cherry picked from commit 8c60b55d7d49bc6fa1d8d076c025fc83283c0776)

Conflicts:
src/kv/RocksDBStore.cc (trivial)
src/kv/RocksDBStore.cc