sessionm-cassandra_object 2.2.22 → 2.2.23
Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown
CHANGED
@@ -45,7 +45,6 @@ module CassandraObject
|
|
45
45
|
# #connection can be called any number of times; the connection is
|
46
46
|
# held in a hash keyed by the thread id.
|
47
47
|
def connection
|
48
|
-
Rails.logger.info "current_connection_id:#{current_connection_id} conn:#{@reserved_connections[current_connection_id]}"
|
49
48
|
@reserved_connections[current_connection_id] ||= checkout
|
50
49
|
end
|
51
50
|
|
@@ -137,7 +136,6 @@ module CassandraObject
|
|
137
136
|
# - ConnectionTimeoutError: no connection can be obtained from the pool
|
138
137
|
# within the timeout period.
|
139
138
|
def checkout
|
140
|
-
Rails.logger.info "checkout()"
|
141
139
|
# Checkout an available connection
|
142
140
|
@connection_mutex.synchronize do
|
143
141
|
loop do
|
@@ -146,7 +144,6 @@ module CassandraObject
|
|
146
144
|
elsif @connections.size < @size
|
147
145
|
checkout_new_connection
|
148
146
|
end
|
149
|
-
Rails.logger.info "checkout returning:#{conn}" if conn
|
150
147
|
return conn if conn
|
151
148
|
|
152
149
|
@queue.wait(@timeout)
|
@@ -170,7 +167,6 @@ module CassandraObject
|
|
170
167
|
# +conn+: an AbstractAdapter object, which was obtained by earlier by
|
171
168
|
# calling +checkout+ on this pool.
|
172
169
|
def checkin(conn)
|
173
|
-
Rails.logger.info "checkin:#{conn}"
|
174
170
|
@connection_mutex.synchronize do
|
175
171
|
# conn.send(:_run_checkin_callbacks) do
|
176
172
|
@checked_out.delete conn
|
@@ -184,7 +180,6 @@ module CassandraObject
|
|
184
180
|
|
185
181
|
private
|
186
182
|
def new_connection
|
187
|
-
Rails.logger.info "spec:#{spec.inspect}"
|
188
183
|
Cassandra.new(spec[:keyspace], spec[:servers], spec[:thrift])
|
189
184
|
|
190
185
|
#this_spec = spec.dup
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 2
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 2.2.
|
8
|
+
- 23
|
9
|
+
version: 2.2.23
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Michael Koziarski
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-08-
|
19
|
+
date: 2011-08-18 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|