Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6202)

Unified Diff: chrome/common/extensions/docs/server2/cache_chain_object_store.py

Issue 660383002: Docserver: Persist stat cache for versioned file systems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change caching strategy, better refresh cycle synchronization Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/cache_chain_object_store.py
diff --git a/chrome/common/extensions/docs/server2/cache_chain_object_store.py b/chrome/common/extensions/docs/server2/cache_chain_object_store.py
index 6741d5f503c5b3acaf5912d044a1387ab7556f8e..6fba846f555c3907f891cb0dea73c953137beada 100644
--- a/chrome/common/extensions/docs/server2/cache_chain_object_store.py
+++ b/chrome/common/extensions/docs/server2/cache_chain_object_store.py
@@ -2,7 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from future import Future
+from future import All, Future
from object_store import ObjectStore
@@ -29,8 +29,8 @@ class CacheChainObjectStore(ObjectStore):
def SetMulti(self, mapping):
self._cache.update(mapping)
- for object_store in self._object_stores:
- object_store.SetMulti(mapping)
+ return All([object_store.SetMulti(mapping)
+ for object_store in self._object_stores])
not at google - send to devlin 2014/10/22 18:08:47 I don't think you need the [] here. All() can take
Ken Rockot(use gerrit already) 2014/10/23 22:36:16 Done.
def GetMulti(self, keys):
missing_keys = list(keys)

Powered by Google App Engine
This is Rietveld 408576698