Verified Commit 38f11342 authored by Marc Vef's avatar Marc Vef
Browse files

RocksDB backend: Handle NotFoundException on remove

parent 06a235ca
Loading
Loading
Loading
Loading
+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());