[tracker/checkpoint: 2/12] libtracker-data: Fix tracker_db_manager_restore_from_temp
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/checkpoint: 2/12] libtracker-data: Fix tracker_db_manager_restore_from_temp
- Date: Mon, 27 Jun 2011 08:33:08 +0000 (UTC)
commit e4f5322c8c1bc3b8474eb53b99659f6d4449daef
Author: JÃrg Billeter <j bitron ch>
Date: Mon Jun 27 10:07:13 2011 +0200
libtracker-data: Fix tracker_db_manager_restore_from_temp
src/libtracker-data/tracker-db-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-data/tracker-db-manager.c b/src/libtracker-data/tracker-db-manager.c
index 67bec64..f9721d3 100644
--- a/src/libtracker-data/tracker-db-manager.c
+++ b/src/libtracker-data/tracker-db-manager.c
@@ -1398,8 +1398,8 @@ tracker_db_manager_restore_from_temp (void)
for (i = 1; i < G_N_ELEMENTS (dbs); i++) {
filename = g_strdup_printf ("%s.tmp", dbs[i].abs_filename);
g_message (" Renaming database:'%s' -> '%s'",
- dbs[i].abs_filename, filename);
- if (g_rename (dbs[i].abs_filename, filename) == -1) {
+ filename, dbs[i].abs_filename);
+ if (g_rename (filename, dbs[i].abs_filename) == -1) {
g_critical ("%s", g_strerror (errno));
}
g_free (filename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]