Loading .gitmodules +0 −3 Original line number Diff line number Diff line [submodule "external/hermes"] path = external/hermes url = https://github.com/gekkofs/hermes.git [submodule "tests/scripts/bats"] path = tests/scripts/bats url = https://github.com/bats-core/bats-core.git Loading src/daemon/ops/metadentry.cpp +1 −12 Original line number Diff line number Diff line Loading @@ -83,21 +83,10 @@ create(const std::string& path, Metadata& md) { // update metadata object based on what metadata is needed if(gkfs::config::metadata::create_exist_check) { bool exists = GKFS_DATA->mdb()->exists(path); if(exists) { // If it exists, put_no_exist would typically throw an error. // For now, we'll assume the intent is to do nothing or let the // backend handle the error. The original `put_no_exist` implies an // error if it exists. To maintain similar behavior, we should // probably throw an error here or rely on the backend. For now, // we'll just call put_no_exist as it was, but without constexpr. GKFS_DATA->mdb()->put_no_exist(path, md.serialize()); } else { GKFS_DATA->mdb()->put(path, md.serialize()); } } else { GKFS_DATA->mdb()->put(path, md.serialize()); } } void Loading tests/integration/directories/test_backend_cleanup.py +2 −3 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ def test_backend_cleanup(client_fixture, request, gkfs_daemon): assert ret.retval != -1 # 3. Write some data to generate chunks buf = b'backend_cleanup_test_data' * 10 ret = gkfs_client.write(file_path, buf, len(buf)) assert ret.retval == len(buf) ret = gkfs_client.write_validate(file_path, 600000) assert ret.retval == 0 # Let's see what's in the backend rootdir # Usually chunks are in `chunks` directory Loading Loading
.gitmodules +0 −3 Original line number Diff line number Diff line [submodule "external/hermes"] path = external/hermes url = https://github.com/gekkofs/hermes.git [submodule "tests/scripts/bats"] path = tests/scripts/bats url = https://github.com/bats-core/bats-core.git Loading
src/daemon/ops/metadentry.cpp +1 −12 Original line number Diff line number Diff line Loading @@ -83,21 +83,10 @@ create(const std::string& path, Metadata& md) { // update metadata object based on what metadata is needed if(gkfs::config::metadata::create_exist_check) { bool exists = GKFS_DATA->mdb()->exists(path); if(exists) { // If it exists, put_no_exist would typically throw an error. // For now, we'll assume the intent is to do nothing or let the // backend handle the error. The original `put_no_exist` implies an // error if it exists. To maintain similar behavior, we should // probably throw an error here or rely on the backend. For now, // we'll just call put_no_exist as it was, but without constexpr. GKFS_DATA->mdb()->put_no_exist(path, md.serialize()); } else { GKFS_DATA->mdb()->put(path, md.serialize()); } } else { GKFS_DATA->mdb()->put(path, md.serialize()); } } void Loading
tests/integration/directories/test_backend_cleanup.py +2 −3 Original line number Diff line number Diff line Loading @@ -24,9 +24,8 @@ def test_backend_cleanup(client_fixture, request, gkfs_daemon): assert ret.retval != -1 # 3. Write some data to generate chunks buf = b'backend_cleanup_test_data' * 10 ret = gkfs_client.write(file_path, buf, len(buf)) assert ret.retval == len(buf) ret = gkfs_client.write_validate(file_path, 600000) assert ret.retval == 0 # Let's see what's in the backend rootdir # Usually chunks are in `chunks` directory Loading