public
Description: a maintained fork of Evan Weaver's Ultrasphinx code -- see the escape_sql branch
Homepage: http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/files/README.html
Clone URL: git://github.com/DrMark/ultrasphinx.git
Use a more cross-platform pid parameter (Stephen Celis); use the model's 
explicit primary key in the default dynamic finder (Somebody...).


git-svn-id: svn://rubyforge.org/var/svn/fauna/ultrasphinx/trunk@1755 
c1ad287d-65d5-445d-b84c-e64f8492f1e6
evanweaver (author)
Wed Mar 19 22:03:53 -0700 2008
commit  113151534bc0fb04dcde9ed482ce599f9d712d61
tree    8aa3c7079803bfd458c4f3020a809b7036ef0876
parent  b33aecac4075a01ff29d05f9b1d5acb39b1bc9b5
...
254
255
256
257
 
258
259
260
...
254
255
256
 
257
258
259
260
0
@@ -254,7 +254,7 @@ module Ultrasphinx
0
             end or
0
               # XXX This default is kind of buried, but I'm not sure why you would need it to be
0
               # configurable, since you can use ['finder_methods'].
0
- "find_all_by_id"
0
+ "find_all_by_#{klass.primary_key}"
0
             )
0
 
0
           records = klass.send(finder, ids_hash[class_name])
...
139
140
141
142
 
143
144
145
...
139
140
141
 
142
143
144
145
0
@@ -139,7 +139,7 @@ def ultrasphinx_daemon_pid
0
 end
0
 
0
 def ultrasphinx_daemon_running?
0
- if ultrasphinx_daemon_pid and `ps #{ultrasphinx_daemon_pid} | wc`.to_i > 1
0
+ if ultrasphinx_daemon_pid and `ps -p#{ultrasphinx_daemon_pid} | wc`.to_i > 1
0
     true
0
   else
0
     # Remove bogus lockfiles.

Comments

    No one has commented yet.