Added num_changes to changeset replication.
authorMatt Amos <zerebubuth@gmail.com>
Sun, 27 Oct 2013 16:20:35 +0000 (16:20 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Sun, 27 Oct 2013 16:20:35 +0000 (16:20 +0000)
cookbooks/planet/files/default/replication-bin/replicate-changesets

index 443d8ede30b91cf6591bfd33d701e563c5c39bf3..b472d795291a16e83a251c918bd9c9b7e1f9c81b 100644 (file)
@@ -84,6 +84,7 @@ class Replicator
       xml['created_at'] = cs.created_at.getutc.xmlschema
       xml['closed_at'] = cs.closed_at.getutc.xmlschema if cs.closed?(@now)
       xml['open'] = cs.open?(@now).to_s
+      xml['num_changes'] = cs.num_changes
 
       res = @conn.exec("select u.id, u.display_name, c.min_lat, c.max_lat, c.min_lon, c.max_lon from users u join changesets c on u.id=c.user_id where c.id=#{cs.id}")
       xml['user'] = res[0]['display_name']