Eli Mesika has posted comments on this change. Change subject: core[DB]: Adding external status to DB ......................................................................
Patch Set 1: -Verified (4 comments) https://gerrit.ovirt.org/#/c/42132/1/packaging/dbscripts/create_views.sql File packaging/dbscripts/create_views.sql: Line 511: storage_domain_dynamic.used_disk_size AS used_disk_size, Line 512: fn_get_disk_commited_value_by_storage ( storage_domain_static.id ) AS commited_disk_size, Line 513: fn_get_actual_images_size_by_storage ( storage_domain_static.id ) AS actual_images_size, Line 514: NULL AS status, Line 515: storage_pool_iso_map.external_status AS external_status, > In case of an ISO domain connected to several pools, this will return the d remove this from the patch or return NULL as external status ??? Line 516: fn_get_storage_domain_shared_status_by_domain_id ( storage_domain_static.id, Line 517: storage_pool_iso_map.status, Line 518: storage_domain_static.storage_domain_type ) AS storage_domain_shared_status, Line 519: storage_domain_static.recoverable AS recoverable, Line 566: FROM Line 567: storage_domain_static Line 568: INNER JOIN storage_domain_dynamic ON storage_domain_static.id = storage_domain_dynamic.id Line 569: INNER JOIN storage_pool_iso_map ON storage_domain_static.id = storage_pool_iso_map.storage_id Line 570: INNER JOIN storage_pool ON storage_pool_iso_map.storage_pool_id = storage_pool.id > Shouldn't be required - see above. This view is used in the search engine, how will I get the external_status value without that Am I missing something ??? Line 571: Line 572: LEFT Line 573: OUTER JOIN ( Line 574: SELECT Line 587: FROM Line 588: storage_pool_iso_map Line 589: JOIN storage_pool ON storage_pool_iso_map.storage_pool_id = storage_pool.id Line 590: GROUP BY Line 591: storage_id) AS status_table ON storage_domain_static.id = status_table.storage_id > Unrelated to the patch - please remove this change, or do in a different pa will do Line 592: LEFT Line 593: OUTER JOIN ( Line 594: SELECT Line 595: DISTINCT storage_domain_id https://gerrit.ovirt.org/#/c/42132/1/packaging/dbscripts/storages_san_sp.sql File packaging/dbscripts/storages_san_sp.sql: Line 237: BEGIN Line 238: UPDATE storage_pool_iso_map Line 239: SET Line 240: external_status = v_external_status Line 241: WHERE storage_id = v_storage_id and > please capaitalize the AND will do Line 242: storage_pool_id = v_storage_pool_id; Line 243: END; $procedure$ Line 244: LANGUAGE plpgsql; Line 245: -- To view, visit https://gerrit.ovirt.org/42132 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: Ifdfc25b91eacfa73be783b3b84827e0d5788b91d Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Allon Mureinik <amure...@redhat.com> Gerrit-Reviewer: Eli Mesika <emes...@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Liran Zelkha <lzel...@redhat.com> Gerrit-Reviewer: Moti Asayag <masa...@redhat.com> Gerrit-Reviewer: Oved Ourfali <oourf...@redhat.com> Gerrit-Reviewer: Tal Nisan <tni...@redhat.com> Gerrit-Reviewer: automat...@ovirt.org Gerrit-HasComments: Yes _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches