[tracker/gdbus] libtracker-sparql: Disable MIME check, improves startup performance



commit e6286928e1b38e693786d2845dd180b160ce4659
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Oct 28 10:18:45 2010 +0200

    libtracker-sparql: Disable MIME check, improves startup performance

 src/libtracker-sparql/tracker-backend.vala |   23 -----------------------
 1 files changed, 0 insertions(+), 23 deletions(-)
---
diff --git a/src/libtracker-sparql/tracker-backend.vala b/src/libtracker-sparql/tracker-backend.vala
index 37be78a..279a677 100644
--- a/src/libtracker-sparql/tracker-backend.vala
+++ b/src/libtracker-sparql/tracker-backend.vala
@@ -240,29 +240,6 @@ class Tracker.Sparql.Backend : Connection {
 
 	private Tracker.Sparql.Connection? load_plugins_from_path (string path, bool required) throws GLib.Error {
 		try {
-			File file = File.new_for_path (path);
-			assert (file != null);
-
-			FileInfo info = null;
-
-			string attributes = FILE_ATTRIBUTE_STANDARD_NAME + "," +
-				            FILE_ATTRIBUTE_STANDARD_TYPE + "," +
-				            FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE;
-
-			info = file.query_info (attributes,
-				                FileQueryInfoFlags.NONE,
-				                null);
-
-			string content_type = info.get_content_type ();
-			string mime = ContentType.get_mime_type (content_type);
-			string expected_mime = "application/x-sharedlib";
-		
-			if (mime != expected_mime) {
-				throw new IOError.FAILED ("Could not load plugin, mime type was '%s', expected:'%s'",
-				                          mime,
-				                          expected_mime);
-			}
-
 			// lazy resolving reduces initialization time
 			Module module = Module.open (path, ModuleFlags.BIND_LOCAL | ModuleFlags.BIND_LAZY);
 			if (module == null) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]