From d2928e5580ef2d964254c54e510afd8c10aaeccd Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 20 Dec 2024 20:48:44 -0600 Subject: [PATCH] fix meta db --- repertory/librepertory/src/db/impl/sqlite_meta_db.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp b/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp index 2d9b646a..e3f0fbf1 100644 --- a/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp +++ b/repertory/librepertory/src/db/impl/sqlite_meta_db.cpp @@ -279,6 +279,12 @@ void sqlite_meta_db::remove_api_path(const std::string &api_path) { auto sqlite_meta_db::remove_item_meta(const std::string &api_path, const std::string &key) -> api_error { + if (key == META_DIRECTORY || key == META_PINNED || key == META_SIZE || + key == META_SOURCE) { + // TODO log warning for unsupported attributes + return api_error::success; + } + api_meta_map meta{}; auto res = get_item_meta(api_path, meta); if (res != api_error::success) {