tracker_miner_manager_new_full() was reported to be potentially
locking up for an unknown reason.
As we diddn't use the miner anyway for other reasons (see comment in
the code), simply #ifdef 0 the whole code.
#define MAX_SL_RESULTS 20
static TrackerSparqlConnection *connection;
#define MAX_SL_RESULTS 20
static TrackerSparqlConnection *connection;
static TrackerMinerManager *manager;
static TrackerMinerManager *manager;
static char *tracker_to_unix_path(const char *uri)
{
static char *tracker_to_unix_path(const char *uri)
{
become_root();
connection = tracker_sparql_connection_get(NULL, &error);
become_root();
connection = tracker_sparql_connection_get(NULL, &error);
+#if 0 /* this may hang, so disable it as we don't use the miner anyway */
manager = tracker_miner_manager_new_full(FALSE, &error);
manager = tracker_miner_manager_new_full(FALSE, &error);
unbecome_root();
if (!connection) {
unbecome_root();
if (!connection) {
if (!manager) {
LOG(log_error, logtype_sl, "Couldn't connect to Tracker miner");
g_clear_error(&error);
EC_FAIL;
}
if (!manager) {
LOG(log_error, logtype_sl, "Couldn't connect to Tracker miner");
g_clear_error(&error);
EC_FAIL;
}
#ifdef HAVE_TRACKER_MINER
EC_INIT;
const char *f = p;
#ifdef HAVE_TRACKER_MINER
EC_INIT;
const char *f = p;
+#endif /* HAVE_TRACKER_MINER */
+#endif /* 0 */
}
struct sl_module_export sl_mod = {
}
struct sl_module_export sl_mod = {