]> git.openstreetmap.org Git - rails.git/commitdiff
force changeset id to be an int so we don't have a table scan
authorRichard Fairhurst <richard@systemed.net>
Wed, 3 Feb 2010 16:50:39 +0000 (16:50 +0000)
committerRichard Fairhurst <richard@systemed.net>
Wed, 3 Feb 2010 16:50:39 +0000 (16:50 +0000)
app/controllers/amf_controller.rb

index 2aac00d5ed81326736671c0c3bb2073afe97b695..e3ee92ff019428227523396a8e2432651f3f1427 100644 (file)
@@ -187,7 +187,7 @@ class AmfController < ApplicationController
 
       # close previous changeset and add comment
       if closeid
-        cs = Changeset.find(closeid)
+        cs = Changeset.find(closeid.to_i)
         cs.set_closed_time_now
         if cs.user_id!=user.id
           raise OSM::APIUserChangesetMismatchError.new