Author: david
Date: Fri Apr 6 14:00:06 2012
New Revision: 11416
Log:
drop references to offset and $ioOffset
Modified:
trunk/lib/QubitSearch.class.php
Modified: trunk/lib/QubitSearch.class.php
==============================================================================
--- trunk/lib/QubitSearch.class.php Fri Apr 6 13:05:31 2012 (r11415)
+++ trunk/lib/QubitSearch.class.php Fri Apr 6 14:00:06 2012 (r11416)
@@ -114,7 +114,7 @@
$this->timer = new QubitTimer;
$this->getLogger()->log('Populating index...', $this->getName());
- // if we are using an offset to resume from a segfault, optimize the index
instead of deleting
+ // If doing full re-index, then delete previous data
if (!isset($options['skip']))
{
$this->getEngine()->erase();
@@ -137,7 +137,7 @@
$rs = self::$conn->query($sql);
$rowcount = $rs->fetchColumn(0);
- // Get actors (with offset)
+ // Get actors
$criteria = new Criteria;
QubitActor::addSelectColumns($criteria);
@@ -146,7 +146,7 @@
{
self::addActorIndex($actor);
- $this->getLogger()->log('"'.$actor->__toString().'" inserted
('.$this->timer->elapsed().'s) ('.($key + $actorOffset + 1).'/'.$rowcount.')',
$this->getName());
+ $this->getLogger()->log('"'.$actor->__toString().'" inserted
('.$this->timer->elapsed().'s) ('.($key + 1).'/'.$rowcount.')',
$this->getName());
}
}
else
@@ -157,7 +157,7 @@
// index information objects
if (!isset($options['skip']) || 'io' != $options['skip'])
{
- $this->populateInformationObjects($ioOffset);
+ $this->populateInformationObjects();
}
else
{
@@ -460,7 +460,7 @@
$node->addToIndex();
}
- public function populateInformationObjects($offset)
+ public function populateInformationObjects($options = array())
{
if (!isset(self::$conn))
{
--
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/qubit-commits?hl=en.