[ledger] Fix the way LevelDb instances are opened.

LevelDb should be opened using a UniqueFD at the destination. This
will guarantee that moving the database (in LevelDbFactory) will work
correctly.

Test: DetatchedPathTest.OpenFD,
      PageSnapshotIntegrationTest/PageSnapshotIntegrationTest.PageSnapshotGetEntriesMultiPartSize/1
      succeeds for random_seed="3198011208". See failure here:
      https://logs.chromium.org/logs/fuchsia/buildbucket/cr-buildbucket.appspot.com/8930523066450760368/+/steps/all_test_results/0/steps/s__pkgfs_packages_ledger_tests_0_test_ledger_integration_tests/0/logs/stdio/0
Change-Id: I83ed183dedba66c448dbcdc1c274665d3acbce11
5 files changed
tree: 1005d732fba24b3db821bdf919dc741c228d1d77
  1. bin/
  2. boards/
  3. build/
  4. cloud/
  5. docs/
  6. examples/
  7. infra/
  8. lib/
  9. packages/
  10. products/
  11. public/
  12. tests/
  13. third_party/
  14. web/
  15. .clang-format
  16. .clang-tidy
  17. .gitignore
  18. AUTHORS
  19. BUILD.gn
  20. CONTRIBUTING.md
  21. LICENSE
  22. navbar.md
  23. PATENTS
  24. README.md
README.md

Peridot

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.

Read more