]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv/RocksDBStore: abort if rocksdb EIO, don't return incorrect result 15862/head
authorHaomai Wang <haomai@xsky.com>
Fri, 23 Jun 2017 01:36:20 +0000 (09:36 +0800)
committerHaomai Wang <haomai@xsky.com>
Sat, 24 Jun 2017 03:33:42 +0000 (11:33 +0800)
commit8c60b55d7d49bc6fa1d8d076c025fc83283c0776
tree78c27298ee2f755c276b10ac6988b942af321dd2
parent6ffb6eb0e8db352a3742071d1554a9e1d02e9f2d
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>
src/kv/RocksDBStore.cc