Mercurial > hg > bitcoin
annotate src/leveldb/helpers/memenv/memenv.h @ 3634:98b459278ba3 draft
Import LevelDB 1.5, it will be used for the transaction database.
author | Mike Hearn <hearn@google.com> |
---|---|
date | Mon, 25 Jun 2012 11:17:22 +0200 |
parents | |
children |
rev | line source |
---|---|
3634
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
1 // Copyright (c) 2011 The LevelDB Authors. All rights reserved. |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
2 // Use of this source code is governed by a BSD-style license that can be |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
3 // found in the LICENSE file. See the AUTHORS file for names of contributors. |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
4 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
5 #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
6 #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
7 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
8 namespace leveldb { |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
9 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
10 class Env; |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
11 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
12 // Returns a new environment that stores its data in memory and delegates |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
13 // all non-file-storage tasks to base_env. The caller must delete the result |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
14 // when it is no longer needed. |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
15 // *base_env must remain live while the result is in use. |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
16 Env* NewMemEnv(Env* base_env); |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
17 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
18 } // namespace leveldb |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
19 |
98b459278ba3
Import LevelDB 1.5, it will be used for the transaction database.
Mike Hearn <hearn@google.com>
parents:
diff
changeset
|
20 #endif // STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ |