mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
B #2758: add db_versioning to federated tables. Fix reference to
pool_control table (cherry picked from commit 7785509e5ab01aa9307b9556c7f83eda689ab0b7)
This commit is contained in:
parent
099c99a947
commit
5e4f97e84e
@ -99,7 +99,7 @@ EOT
|
||||
"marketplaceapp_pool"].freeze
|
||||
|
||||
FEDERATED_TABLES = ["group_pool", "user_pool", "acl", "zone_pool",
|
||||
"vdc_pool", "marketplace_pool", "marketplaceapp_pool"].freeze
|
||||
"vdc_pool", "marketplace_pool", "marketplaceapp_pool", "db_versioning"].freeze
|
||||
|
||||
def tables
|
||||
TABLES
|
||||
|
@ -49,7 +49,7 @@ module OneDBFsck
|
||||
end
|
||||
|
||||
def fix_pool_control
|
||||
db = @db[:image_pool]
|
||||
db = @db[:pool_control]
|
||||
|
||||
@db.transaction do
|
||||
@fixes_pool_control.each do |name, last_oid|
|
||||
|
@ -30,7 +30,7 @@ end
|
||||
|
||||
class OneDBBacKEnd
|
||||
FEDERATED_TABLES = %w(group_pool user_pool acl zone_pool vdc_pool
|
||||
marketplace_pool marketplaceapp_pool)
|
||||
marketplace_pool marketplaceapp_pool db_versioning)
|
||||
|
||||
def read_db_version
|
||||
connect_db
|
||||
|
Loading…
x
Reference in New Issue
Block a user