aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
Commit message (Collapse)AuthorAgeFilesLines
...
* | blockchain_db: add a few constmoneromooo-monero2015-05-272-6/+6
|/
* Merge pull request #289Riccardo Spagni2015-05-262-75/+210
|\ | | | | | | | | | | | | 01076ae Check if LMDB needs resize every 1000 blocks (Thomas Winget) b0d849e null out batch txn pointer as needed (BlockchainLMDB) (Thomas Winget) 7b7ef73 LMDB should now dynamically resize the mapsize (Thomas Winget) ac79502 Move mdb_txn_safe implementation to cpp file (Thomas Winget)
| * Check if LMDB needs resize every 1000 blocksThomas Winget2015-05-181-1/+1
| | | | | | | | (this was 10 for testing purposes)
| * null out batch txn pointer as needed (BlockchainLMDB)Thomas Winget2015-05-181-4/+5
| |
| * LMDB should now dynamically resize the mapsizeThomas Winget2015-05-162-60/+187
| | | | | | | | | | | | | | | | | | | | | | Some filesystems (*cough* NTFS *cough*) aren't good with sparse files, so this makes LMDB dynamically resize its mapsize as needed. Note: the check interval is currently every 10 blocks (for testing) and will probably need to change to 1000 or something. Default mapsize set to 1GiB. Blockchain conversion tools using batching will probably segfault, I'll fix that in the next commit.
| * Move mdb_txn_safe implementation to cpp fileThomas Winget2015-05-152-51/+58
| |
* | Allow BlockchainLMDB to be opened in read-only modewarptangent2015-05-161-2/+6
|/ | | | Have blockchain_export use read-only mode when source is BlockchainLMDB.
* Update log statementswarptangent2015-05-081-1/+1
| | | | | Use filesystem path conversion to string() instead of c_str(). Windows may otherwise output an address.
* Steps toward multiple dbs available -- workingThomas Winget2015-03-252-10/+1
| | | | | | | | | | | There will need to be some more refactoring for these changes to be considered complete/correct, but for now it's working. new daemon cli argument "--db-type", works for LMDB and BerkeleyDB. A good deal of refactoring is also present in this commit, namely Blockchain no longer instantiates BlockchainDB, but rather is passed a pointer to an already-instantiated BlockchainDB on init().
* Pull blockchain changes into berkeleydb branchThomas Winget2015-03-172-11/+17
|\
| * Add support for database open with flagswarptangent2015-03-162-3/+2
| | | | | | | | | | | | | | | | | | | | | | Add support to: - BlockchainDB, BlockchainLMDB - blockchain_import utility to open LMDB database with one or more LMDB flags. Sample use: $ blockchain_import --database lmdb#nosync $ blockchain_import --database lmdb#nosync,nometasync
| * Add mdb_flags variable to LMDB database openwarptangent2015-03-161-1/+2
| |
| * Update and relocate comment that applies class widewarptangent2015-03-151-8/+14
| |
* | Try to not pollute cryptonote namespaceThomas Winget2015-03-162-47/+47
|/
* BlockchainDB implementations have names nowThomas Winget2015-03-132-0/+9
| | | | | | | | | | | In order to make things more general, BlockchainDB now has get_db_name() which should return a string with the "name" of that type of db. This "name" will be the subfolder name that holds that db type's files within the monero folder. Small bugfix: blockchain_converter was not correctly appending this in the prior hard-coded-string implementation of the subfolder data directory concept.
* Moved BlockchainDB into its own src/ subfolderThomas Winget2015-03-062-0/+2122
Ostensibly janitorial work, but should be more relevant later down the line. Things that depend on core cryptonote things (i.e. cryptonote_core) don't necessarily depend on BlockchainDB and thus have no need to have BlockchainDB baked in with them.