提交 106ecae8 编写于 作者: T Tom Meyer 提交者: Karen Huddleston

Switch order of restoring globals and createdb.

Globals should be restored first, as createdb relies on roles being present
Signed-off-by: NChris Hajas <chajas@pivotal.io>
上级 bdafd0ce
......@@ -307,14 +307,14 @@ class RestoreDatabase(Operation):
self._restore_stats()
return
if self.context.drop_db:
self._multitry_createdb()
if self.context.restore_global:
self._restore_global(self.context)
if self.context.restore_global == "only":
return
if self.context.drop_db:
self._multitry_createdb()
"""
For full restore with table filter or for the first recurssion of the incremental restore
we first restore the schema, expand the parent partition table name's in the restore table
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册