[tracker/sam/explicit-ontology-paths: 3/4] libtracker-data: No need to precreate 'data' directory anymore
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/explicit-ontology-paths: 3/4] libtracker-data: No need to precreate 'data' directory anymore
- Date: Fri, 13 Mar 2020 00:16:12 +0000 (UTC)
commit d98ce15d489e6eb160174d7e91c968ae353ff433
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Mar 11 00:56:27 2020 +0100
libtracker-data: No need to precreate 'data' directory anymore
In pre-3.0 Tracker the XDG_DATA_HOME directory held the database
journal, but now it isn't used.
src/libtracker-data/tracker-db-manager.c | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 8292673aa..c41b5f7bb 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -575,15 +575,6 @@ tracker_db_manager_new (TrackerDBManagerFlags flags,
db_manager->in_use_filename = g_build_filename (db_manager->data_dir,
IN_USE_FILENAME,
NULL);
-
- /* Don't do need_reindex checks for readonly (direct-access) */
- if ((flags & TRACKER_DB_MANAGER_READONLY) == 0) {
-
- /* Make sure the directories exist */
- g_debug ("Checking database directories exist");
-
- g_mkdir_with_parents (db_manager->data_dir, 00755);
- }
} else {
db_manager->shared_cache_key = tracker_generate_uuid (NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]