]> git.pld-linux.org Git - packages/ruby-activerecord.git/commitdiff
- added
authoraredridel <aredridel@pld-linux.org>
Thu, 18 Sep 2008 02:09:38 +0000 (02:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ruby-activerecord-sqlitethreads.patch -> 1.1

ruby-activerecord-sqlitethreads.patch [new file with mode: 0644]

diff --git a/ruby-activerecord-sqlitethreads.patch b/ruby-activerecord-sqlitethreads.patch
new file mode 100644 (file)
index 0000000..3a90fd3
--- /dev/null
@@ -0,0 +1,22 @@
+diff -Nur activerecord-2.0.1.orig/lib/active_record/connection_adapters/sqlite_adapter.rb activerecord-2.0.1.sqlitethreads/lib/active_record/connection_adapters/sqlite_adapter.rb
+--- activerecord-2.0.1.orig/lib/active_record/connection_adapters/sqlite_adapter.rb    2007-11-07 20:37:16.000000000 -0700
++++ activerecord-2.0.1.sqlitethreads/lib/active_record/connection_adapters/sqlite_adapter.rb   2008-08-14 17:25:04.000000000 -0600
+@@ -72,6 +72,7 @@
+     #
+     # * <tt>:database</tt> -- Path to the database file.
+     class SQLiteAdapter < AbstractAdapter
++                      @@mutex = Mutex.new
+       def adapter_name #:nodoc:
+         'SQLite'
+       end
+@@ -129,7 +130,9 @@
+       # DATABASE STATEMENTS ======================================
+       def execute(sql, name = nil) #:nodoc:
+-        catch_schema_changes { log(sql, name) { @connection.execute(sql) } }
++                              @@mutex.synchronize do
++                                      catch_schema_changes { log(sql, name) { @connection.execute(sql) } }
++                              end
+       end
+       def update_sql(sql, name = nil) #:nodoc:
This page took 0.080298 seconds and 4 git commands to generate.