Author: bryanduxbury
Date: Tue Apr 7 22:23:40 2009
New Revision: 763003
URL: http://svn.apache.org/viewvc?rev=763003&view=rev
Log:
THRIFT-437. rb: fix benchmarking tools to require proper file names
A few scripts in benchmark/ and script/ were using old-style require statments.
Modified:
incubator/thrift/trunk/lib/rb/benchmark/client.rb
incubator/thrift/trunk/lib/rb/benchmark/server.rb
incubator/thrift/trunk/lib/rb/benchmark/thin_server.rb
incubator/thrift/trunk/lib/rb/script/proto_benchmark.rb
Modified: incubator/thrift/trunk/lib/rb/benchmark/client.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/benchmark/client.rb?rev=763003&r1=763002&r2=763003&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/benchmark/client.rb (original)
+++ incubator/thrift/trunk/lib/rb/benchmark/client.rb Tue Apr 7 22:23:40 2009
@@ -20,7 +20,7 @@
$:.unshift File.dirname(__FILE__) + '/../lib'
require 'thrift'
$:.unshift File.dirname(__FILE__) + "/gen-rb"
-require 'BenchmarkService'
+require 'benchmark_service'
class Client
def initialize(host, port, clients_per_process, calls_per_client,
log_exceptions)
Modified: incubator/thrift/trunk/lib/rb/benchmark/server.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/benchmark/server.rb?rev=763003&r1=763002&r2=763003&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/benchmark/server.rb (original)
+++ incubator/thrift/trunk/lib/rb/benchmark/server.rb Tue Apr 7 22:23:40 2009
@@ -20,7 +20,7 @@
$:.unshift File.dirname(__FILE__) + '/../lib'
require 'thrift'
$:.unshift File.dirname(__FILE__) + "/gen-rb"
-require 'BenchmarkService'
+require 'benchmark_service'
module Server
include Thrift
Modified: incubator/thrift/trunk/lib/rb/benchmark/thin_server.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/benchmark/thin_server.rb?rev=763003&r1=763002&r2=763003&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/benchmark/thin_server.rb (original)
+++ incubator/thrift/trunk/lib/rb/benchmark/thin_server.rb Tue Apr 7 22:23:40
2009
@@ -20,7 +20,7 @@
$:.unshift File.dirname(__FILE__) + '/../lib'
require 'thrift'
$:.unshift File.dirname(__FILE__) + "/gen-rb"
-require 'BenchmarkService'
+require 'benchmark_service'
HOST = 'localhost'
PORT = 42587
Modified: incubator/thrift/trunk/lib/rb/script/proto_benchmark.rb
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/script/proto_benchmark.rb?rev=763003&r1=763002&r2=763003&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/script/proto_benchmark.rb (original)
+++ incubator/thrift/trunk/lib/rb/script/proto_benchmark.rb Tue Apr 7 22:23:40
2009
@@ -18,8 +18,6 @@
#
require File.dirname(__FILE__) + "/../spec/spec_helper.rb"
-require "lib/thrift/serializer"
-require "lib/thrift/protocol/binary_protocol_accelerated"
require "benchmark"
# require "ruby-prof"
@@ -120,4 +118,4 @@
# end
# f.close
-end
\ No newline at end of file
+end