File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515
16+ import copy
1617import os
1718import sys
1819import signal
@@ -36,7 +37,7 @@ def __init__(self, **kwargs):
3637 if self .settings .pop ('cache_initialized_db' , None ):
3738 if init_handler :
3839 try :
39- self .cache = self .target_class ()
40+ self .cache = self .target_class (** self . settings )
4041 init_handler (self .cache )
4142 except :
4243 if self .cache :
@@ -46,7 +47,9 @@ def __init__(self, **kwargs):
4647 if self .cache :
4748 self .cache .terminate ()
4849 else :
49- self .cache = self .target_class (auto_start = 0 )
50+ settings_noautostart = copy .deepcopy (self .settings )
51+ settings_noautostart .update ({"autostart" : 0 })
52+ self .cache = self .target_class (** settings_noautostart )
5053 self .cache .setup ()
5154 self .settings ['copy_data_from' ] = self .cache .get_data_directory ()
5255
You can’t perform that action at this time.
0 commit comments