Remove all calls to framework.db.sync and make this method a no-op now that the task manager is no longer used.

git-svn-id: file:///home/svn/framework3/trunk@12708 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-05-25 00:30:03 +00:00
parent e09d4fb771
commit c5c679cdb7
3 changed files with 2 additions and 22 deletions

View File

@ -170,11 +170,6 @@ module Auxiliary::HttpCrawler
# Extract any interesting data from the page
crawler_process_page(t, page, cnt)
# Sync the database every 100 items
if cnt % 100 == 0
framework.db.sync
end
# Blow up if we hit our maximum page count
if cnt >= max_page_count
print_error("Maximum page count reached for #{url}")

View File

@ -195,8 +195,7 @@ class DBManager
# Wait for all pending write to finish
#
def sync
task = queue( Proc.new { } )
task.wait
# There is no more queue.
end
#

View File

@ -43,8 +43,7 @@ class Db
"db_status" => "Show the current database status",
# Deprecated
"db_create" => "Create a brand new database",
"db_destroy" => "Drop an existing database",
"db_sync" => "Synchronize the database",
"db_destroy" => "Drop an existing database"
}
more = {
@ -293,19 +292,6 @@ class Db
set_rhosts_from_addrs(rhosts) if set_rhosts
end
def cmd_db_sync_help
print_line "Usage: db_sync"
print_line
print_line "Wait for all pending database writes to complete"
print_line
end
def cmd_db_sync(*args)
return unless active?
print_status("Synchronizing the database...")
framework.db.sync
end
def cmd_db_services_help
# Like db_hosts, use "-h" instead of recreating the column list
# here