tracker r2581 - in branches/turtle: . src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2581 - in branches/turtle: . src/tracker-indexer
- Date: Wed, 26 Nov 2008 12:47:47 +0000 (UTC)
Author: pvanhoof
Date: Wed Nov 26 12:47:46 2008
New Revision: 2581
URL: http://svn.gnome.org/viewvc/tracker?rev=2581&view=rev
Log:
2008-11-26 Philip Van Hoof <philip codeminded be>
* src/tracker-indexer/tracker-removable-device.c
* src/tracker-indexer/tracker-indexer.c
* src/tracker-indexer/tracker-indexer.h: Respecting TRANSACTION_MAX
during the Turtle import
Modified:
branches/turtle/ChangeLog
branches/turtle/src/tracker-indexer/tracker-indexer.c
branches/turtle/src/tracker-indexer/tracker-indexer.h
branches/turtle/src/tracker-indexer/tracker-removable-device.c
Modified: branches/turtle/src/tracker-indexer/tracker-indexer.c
==============================================================================
--- branches/turtle/src/tracker-indexer/tracker-indexer.c (original)
+++ branches/turtle/src/tracker-indexer/tracker-indexer.c Wed Nov 26 12:47:46 2008
@@ -84,9 +84,6 @@
#define LOW_DISK_CHECK_FREQUENCY 10
#define SIGNAL_STATUS_FREQUENCY 10
-/* Transaction every 'x' items */
-#define TRANSACTION_MAX 2000
-
/* Throttle defaults */
#define THROTTLE_DEFAULT 0
#define THROTTLE_DEFAULT_ON_BATTERY 5
Modified: branches/turtle/src/tracker-indexer/tracker-indexer.h
==============================================================================
--- branches/turtle/src/tracker-indexer/tracker-indexer.h (original)
+++ branches/turtle/src/tracker-indexer/tracker-indexer.h Wed Nov 26 12:47:46 2008
@@ -30,6 +30,9 @@
#define TRACKER_INDEXER_PATH "/org/freedesktop/Tracker/Indexer"
#define TRACKER_INDEXER_INTERFACE "org.freedesktop.Tracker.Indexer"
+/* Transaction every 'x' items */
+#define TRANSACTION_MAX 2000
+
G_BEGIN_DECLS
#define TRACKER_TYPE_INDEXER (tracker_indexer_get_type())
Modified: branches/turtle/src/tracker-indexer/tracker-removable-device.c
==============================================================================
--- branches/turtle/src/tracker-indexer/tracker-removable-device.c (original)
+++ branches/turtle/src/tracker-indexer/tracker-removable-device.c Wed Nov 26 12:47:46 2008
@@ -162,7 +162,7 @@
* mainloop so that the state-machine gets the opportunity to run for a
* moment */
- if (may_flush && info->amount > 100) {
+ if (may_flush && info->amount > TRANSACTION_MAX) {
tracker_indexer_commit_transaction (info->indexer);
g_main_context_iteration (NULL, FALSE);
tracker_indexer_open_transaction (info->indexer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]