commit | 0c943c8b8b2ae366adfde1923afbec060ba531d6 | [log] [tgz] |
---|---|---|
author | Nelly Vouzoukidou <nellyv@google.com> | Wed Jan 09 10:41:07 2019 +0100 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Jan 09 12:45:06 2019 +0000 |
tree | 171b0a62a8fd9bb12a3468fa3717cc866aa15e36 | |
parent | c85b3a1bfb6d4981d483c88dbcfcf22acce33ffe [diff] |
[ledger] Avoid calling IsDirectoryAt twice, when getting a LevelDb. LedgerStorageImpl::GetPageStorage would check if the directory at the given path existed, in order to return NOT_FOUND if necessary. It would then call DbFactory::GetOrCreateDb, which checked again if the directory exists. In this CL DbFactory::GetOrCreateDb is updated to support only getting an existing Db, and fail with NOT_FOUND status if it doesn't exist. This helps remove the extra call to IsDirectoryAt in LedgerStorageImpl. Test: LevelDbFactoryTest.* Change-Id: I6b97615179ceae2347e9403b17177f44ee4e1112
Peridot is a framework for composed, intelligent and distributed user experiences.
Applications not explicitly designed to interoperate (and possibly implemented in different programming languages) are ephemerally downloaded and dynamically composed to run in a shared context. The framework manages application lifecycle, resources and view hierarchy; and well as context and suggestion infrastructure.
State of Peridot experiences is transparently synchronized across user devices using a distributed offline-first storage system.