[tracker/error-handling] Cleanup, squash this away in the temporary commits
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/error-handling] Cleanup, squash this away in the temporary commits
- Date: Tue, 8 Feb 2011 16:58:19 +0000 (UTC)
commit da1c0f6b3e052454cfcc574ec81f5bf74ebaa97f
Author: Philip Van Hoof <philip codeminded be>
Date: Tue Feb 8 17:57:55 2011 +0100
Cleanup, squash this away in the temporary commits
src/libtracker-common/tracker-file-utils.c | 2 +-
src/libtracker-data/tracker-data-update.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-common/tracker-file-utils.c b/src/libtracker-common/tracker-file-utils.c
index 29f651a..122142d 100644
--- a/src/libtracker-common/tracker-file-utils.c
+++ b/src/libtracker-common/tracker-file-utils.c
@@ -258,7 +258,7 @@ tracker_file_system_has_enough_space (const gchar *path,
gchar *str2;
gboolean enough;
guint64 remaining;
-return TRUE;
+
g_return_val_if_fail (path != NULL, FALSE);
remaining = tracker_file_system_get_remaining_space (path);
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 4d9f75f..2446fc9 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2440,11 +2440,11 @@ tracker_data_begin_transaction (GError **error)
g_return_if_fail (!in_transaction);
-// if (!tracker_db_manager_has_enough_space ()) {
-// g_set_error (error, TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_NO_SPACE,
-// "There is not enough space on the file system for update operations");
-// return;
-// }
+ if (!tracker_db_manager_has_enough_space ()) {
+ g_set_error (error, TRACKER_SPARQL_ERROR, TRACKER_SPARQL_ERROR_NO_SPACE,
+ "There is not enough space on the file system for update operations");
+ return;
+ }
resource_time = time (NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]