Commit 38d47351 authored by Marc Vef's avatar Marc Vef
Browse files

SQUASH Revert previous commit and handle notfoundexception instead.

parent a61ab03a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ void
RocksDBBackend::remove_impl(const std::string& key) {

    auto s = db_->Delete(write_opts_, key);
    if(!s.ok() && !s.IsNotFound()) {
    if(!s.ok()) {
        throw_status_excpt(s);
    }
}
+5 −0
Original line number Diff line number Diff line
@@ -253,6 +253,11 @@ rpc_srv_remove_metadata(hg_handle_t handle) {
                GKFS_DATA->storage()->destroy_chunk_space(in.path);
        }

    } catch(const gkfs::metadata::NotFoundException& e) {
        GKFS_DATA->spdlogger()->warn(
                "{}(): path '{}' message '{}'. Continuing, setting out.err 0.",
                __func__, in.path, e.what());
        out.err = 0;
    } catch(const gkfs::metadata::DBException& e) {
        GKFS_DATA->spdlogger()->error("{}(): path '{}' message '{}'", __func__,
                                      in.path, e.what());