diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-07-03 08:33:11 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-07-03 08:33:11 +0300 |
commit | b223f7b7a081be31cf5cc6026decad13bd79c813 (patch) | |
tree | 3df82a8f2518147d9d76e07f9b61582a7edf3ce6 /app/models/ci | |
parent | 86251e74c54e837b1447deba6c53306c2a38c17d (diff) |
Rename persistable_store instead of persist_store
Diffstat (limited to 'app/models/ci')
-rw-r--r-- | app/models/ci/build_trace_chunk.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/build_trace_chunk.rb b/app/models/ci/build_trace_chunk.rb index 4362570b5ee..e7c56b94751 100644 --- a/app/models/ci/build_trace_chunk.rb +++ b/app/models/ci/build_trace_chunk.rb @@ -26,7 +26,7 @@ module Ci @all_stores ||= self.data_stores.keys end - def persist_store + def persistable_store # get first available store from the back of the list all_stores.reverse.find { |store| get_store_class(store).available? } end @@ -99,7 +99,7 @@ module Ci def persist_data! in_lock(*lock_params) do # Write opetation is atomic - unsafe_persist_to!(self.class.persist_store) + unsafe_persist_to!(self.class.persistable_store) end end |