Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
Remove currently unneeded actions
Browse files Browse the repository at this point in the history
:flush_tables_with_read_lock and :unflush_tables are currently not used
anywhere inside Crowbar.
  • Loading branch information
rhafer committed Mar 29, 2012
1 parent a9db050 commit a7819b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions chef/cookbooks/postgresql/providers/database.rb
Expand Up @@ -19,30 +19,6 @@

include Opscode::Postgresql::Database

action :flush_tables_with_read_lock do
if exists?
begin
Chef::Log.info "postgresql_database: flushing tables with read lock"
db.query "flush tables with read lock"
new_resource.updated_by_last_action(true)
ensure
db.close
end
end
end

action :unflush_tables do
if exists?
begin
Chef::Log.info "postgresql_database: unlocking tables"
db.query "unlock tables"
new_resource.updated_by_last_action(true)
ensure
db.close
end
end
end

action :create_db do
unless exists?
begin
Expand Down
2 changes: 1 addition & 1 deletion chef/cookbooks/postgresql/resources/database.rb
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
#

actions :flush_tables_with_read_lock, :unflush_tables, :create_db, :query
actions :create_db, :query

attribute :host, :kind_of => String
attribute :username, :kind_of => String
Expand Down

0 comments on commit a7819b1

Please sign in to comment.